GrapeCity SPREAD for Windows Forms 11.0J
HeaderFormat プロパティ (DropDownCalendar)


ヘッダの書式文字列を取得または設定します。
構文
'Declaration
 
Public Property HeaderFormat As String
'使用法
 
Dim instance As DropDownCalendar
Dim value As String
 
instance.HeaderFormat = value
 
value = instance.HeaderFormat
public string HeaderFormat {get; set;}

プロパティ値

ヘッダの書式を示す System.String 値。
既定値は MMMM yyy です。
解説
UseHeaderFormatプロパティがtrueの場合、このプロパティによって指定された書式を使用してヘッダのテキストが表示されます。
次のサンプルコードは、HeaderFormatプロパティを使用します。
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType inputcell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
inputcell.DropDownCalendar.HeaderFormat = "MM yy";
inputcell.DropDownCalendar.UseHeaderFormat = true;
inputcell.DropDownCalendar.HeaderHeight = 40;
fpSpread1.Sheets[0].Cells[0, 0].CellType = inputcell;
Dim inputcell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
inputcell.DropDownCalendar.HeaderFormat = "MM yy"
inputcell.DropDownCalendar.UseHeaderFormat = True
inputcell.DropDownCalendar.HeaderHeight = 40
FpSpread1.Sheets(0).Cells(0, 0).CellType = inputcell
参照

DropDownCalendar クラス
DropDownCalendar メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.