FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > ColumnHeader クラス : DefaultStyleName プロパティ |
'Declaration Public Property DefaultStyleName As String
'使用法 Dim instance As ColumnHeader Dim value As String instance.DefaultStyleName = value value = instance.DefaultStyleName
public string DefaultStyleName {get; set;}
例外 | 説明 |
---|---|
System.ArgumentException | 指定したスタイル(NamedStyleオブジェクト)がコレクション内に見つかりませんでした。 |
FarPoint.Win.Spread.ColumnHeader ch; FarPoint.Win.Spread.NamedStyle style = new FarPoint.Win.Spread.NamedStyle("ColumnHeader"); ch = fpSpread1.ActiveSheet.ColumnHeader; ch.RowCount = 3; style.BackColor = Color.Teal; fpSpread1.NamedStyles.Add(style); ch.DefaultStyleName = "ColumnHeader";
Dim ch As FarPoint.Win.Spread.ColumnHeader Dim style As New FarPoint.Win.Spread.NamedStyle("ColumnHeader") ch = FpSpread1.ActiveSheet.ColumnHeader ch.RowCount = 3 style.BackColor = Color.Teal FpSpread1.NamedStyles.Add(style) ch.DefaultStyleName = "ColumnHeader"