MESCIUS SPREAD for Windows Forms 15.0J
SetCalendarFormat メソッド
使用例 

カレンダーのヘッダの書式
ポップアップカレンダーのヘッダに使用する書式を設定します。
構文
'宣言
 
Public Sub SetCalendarFormat( _
   ByVal calFormat As String _
) 
public void SetCalendarFormat( 
   string calFormat
)

パラメータ

calFormat
カレンダーのヘッダの書式
使用例
次のサンプルコードは、カレンダーヘッダ内の日付の書式を設定します。
FarPoint.Win.Spread.CellType.DateTimeCellType dt = new FarPoint.Win.Spread.CellType.DateTimeCellType();
dt.SetCalendarText(new String[] {"Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"}, new String[] {"Jan", "Feb", "Mar", "Apr",
"May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"}, new String[] {"S", "M", "T", "W", "Th", "F", "Sa"}, new String[]
{"J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"}, "Finished", "Later", "Now"); dt.SetCalendarFormat("MM/dd/yyyy");
fpSpread1.ActiveSheet.Cells[0, 0].CellType = dt;
Dim dt As New FarPoint.Win.Spread.CellType.DateTimeCellType
dt.SetCalendarText(New String() {"Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"}, New String() {"Jan", "Feb", "Mar", "Apr",
"May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"}, New String() {"S", "M", "T", "W", "Th", "F", "Sa"}, New String()
{"J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"}, "Finished", "Later", "Now")
dt.SetCalendarFormat("MM/dd/yyyy")
fpSpread1.ActiveSheet.Cells(0, 0).CellType = dt
参照

DateTimeCellType クラス
DateTimeCellType メンバ

 

 


© MESCIUS inc. All rights reserved.