PowerTools CalendarGrid for Windows Forms 1.0J
ドロップダウン電卓(CalendarGcNumberCellType)

概要

ドロップダウン電卓は、視覚的な数値入力を可能にする入力補助機能です。

CalendarGcNumberCellTypeでは、DropDownプロパティが参照するDropDownオブジェクトを使用してドロップダウン時の動作を設定することができます。


ドロップダウン電卓を表示する

ドロップダウン電卓を表示するには、次の4つの方法があります。

次のサンプルコードは、セルにドロップダウンボタンを表示する方法です。

Imports InputManCell = GrapeCity.Win.CalendarGrid.InputMan

Dim today As DateTime = DateTime.Today

Dim GcNumberCellType As New InputManCell.CalendarGcNumberCellType()
' ドロップダウンボタンを追加
GcNumberCellType.SideButtons.Add(New InputManCell.DropDownButton())

GcCalendarGrid1.Content(today).Rows(1).Cells(0).CellType = GcNumberCellType
GcCalendarGrid1.ScrollIntoView(today)
using InputManCell = GrapeCity.Win.CalendarGrid.InputMan;

var today = DateTime.Today;

var gcNumberCellType = new InputManCell.CalendarGcNumberCellType();
// ドロップダウンボタンを追加
gcNumberCellType.SideButtons.Add(new InputManCell.DropDownButton());

gcCalendarGrid1.Content[today].Rows[1].Cells[0].CellType = gcNumberCellType;
gcCalendarGrid1.ScrollIntoView(today);


ドロップダウン動作の設定

ドロップダウンの動作を設定するDropDownオブジェクトは、次のようなプロパティを設定できます。


参照

 

 


© 2014 GrapeCity inc. All rights reserved.