PowerTools SPREAD for Windows Forms 8.0J
タッチ操作によるInputManセルのカレンダー

GcDateTime型セルでは、ドロップダウンカレンダーを表すDropDownCalendarInfoクラスのCalendarType プロパティの設定により、日付を選択するMonthDayカレンダーと月を選択するYearMonthカレンダーを切り替えることができます。また、ShowZoomButton プロパティでズームボタンを表示し、ユーザーがズームボタンを押すことで、カレンダータイプを切り替えられるようにできます。

タッチ操作では、EnableTouchZoom プロパティをTrueに設定することで、ピンチ、ストレッチ操作によりカレンダータイプを切り替えることができます。


サンプルコード

次のサンプルコードは、EnableTouchZoomプロパティを設定し、ピンチ、ストレッチ操作によりカレンダータイプを切り替えられるように設定します。

C#
コードのコピー
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType imdc = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
imdc.DropDownCalendar.EnableTouchZoom = true;
fpSpread1.ActiveSheet.Columns[0].CellType = imdc;
Visual Basic
コードのコピー
Dim imdc As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
imdc.DropDownCalendar.EnableTouchZoom = True
FpSpread1.ActiveSheet.Columns(0).CellType = imdc

 

 


© 2004-2015, GrapeCity inc. All rights reserved.