ドロップダウンカレンダーのヘッダの書式を設定する方法
対象製品
InputMan for Windows Forms 10.0J
詳細
日付時刻(GcDateTime)コントロールや日付(GcDate)コントロールのドロップダウンカレンダーで、CalendarTypeプロパティがMonthDay(月-日カレンダー)の場合、ヘッダに表示される年や月の書式は、HeaderFormatプロパティで設定できます。HeaderFormatプロパティの設定を有効にするには、UseHeaderFormatプロパティをTrueに設定する必要があります。
[Visual Basic]
なお、CalendarTypeプロパティをYearMonth(年-月カレンダー)に設定している場合は、YearMonthFormatプロパティで書式を設定します。
[Visual Basic]
GcDateTime1.DropDownCalendar.UseHeaderFormat = True GcDateTime1.DropDownCalendar.HeaderFormat = "gggee年MM月"[C#]
gcDateTime1.DropDownCalendar.UseHeaderFormat = true; gcDateTime1.DropDownCalendar.HeaderFormat = "gggee年MM月";
なお、CalendarTypeプロパティをYearMonth(年-月カレンダー)に設定している場合は、YearMonthFormatプロパティで書式を設定します。