以下のセル型では、タッチ操作によってドロップダウンオブジェクトを表示した場合、マウス操作時よりも大きいサイズのオブジェクトを表示します。ドロップダウンオブジェクトの大きさはそれぞれのセルのTouchDropDownScaleプロパティで設定できます。
セル型 |
機能 |
コモンセル |
ColumnHeaderCell |
HeaderDropDownContextMenuクラスを使用したドロップダウンリスト |
InputManCell |
GcTextBoxCell |
ドロップダウンエディットウィンドウ、オートコンプリートウィンドウ |
GcMaskCell |
列挙型フィールドのドロップダウンリスト |
GcDateTimeCell |
ドロップダウンカレンダー、ドロップダウン日付時刻ピッカー |
GcNumberCell |
ドロップダウン電卓 |
GcComboBoxCell |
ドロップダウンリスト、オートコンプリートウィンドウ |
GcPostalCell |
オートコンプリートウィンドウ |
GcAddressBoxCell |
各フィールドのドロップダウンリスト |
PlusPakCell |
GcColorPickerCell |
カラーパレット |
GcFontPickerCell |
ドロップダウンリスト |
次のコードは、コモンセルのColumnHeaderCellのドロップダウンオブジェクトの大きさを既定の200%に拡大します。
Imports System.Windows.Forms
Imports GrapeCity.Win.MultiRow
Dim TextBoxCell1 = New TextBoxCell()
TextBoxCell1.Name = "TextBoxCell1"
TextBoxCell1.Size = New Size(200, 20)
Dim Template1 As Template = Template.CreateGridTemplate(New Cell() {TextBoxCell1})
Dim ColumnHeaderCell1 = DirectCast(Template1.ColumnHeaders(0).Cells(0), ColumnHeaderCell)
ColumnHeaderCell1.DropDownList = New HeaderDropDownList("TextBoxCell1", False, False)
Dim HeaderDropDownContextMenu1 = New HeaderDropDownContextMenu()
HeaderDropDownContextMenu1.Items.AddRange(New ToolStripItem() {
New SortToolStripItem(),
New SortToolStripItem(),
New ToolStripSeparator(),
New ShowAllToolStripItem(),
New ToolStripSeparator(),
New AutoFilterToolStripItem()})
' ドロップダウンオブジェクトの大きさを既定の200%に拡大します。
HeaderDropDownContextMenu1.TouchDropDownScale = 2.0F
ColumnHeaderCell1.DropDownContextMenuStrip = HeaderDropDownContextMenu1
GcMultiRow1.Template = Template1
using System.Windows.Forms;
using GrapeCity.Win.MultiRow;
TextBoxCell textBoxCell1 = new TextBoxCell();
textBoxCell1.Name = "textBoxCell1";
textBoxCell1.Size = new Size(200, 20);
Template template = Template.CreateGridTemplate(new Cell[] { textBoxCell1 });
ColumnHeaderCell columnHeaderCell = template.ColumnHeaders[0].Cells[0] as ColumnHeaderCell;
columnHeaderCell.DropDownList = new HeaderDropDownList("textBoxCell1", false, false);
HeaderDropDownContextMenu headerDropDownContextMenu1 = new HeaderDropDownContextMenu();
headerDropDownContextMenu1.Items.AddRange(new ToolStripItem[]{
new SortToolStripItem(),
new SortToolStripItem(),
new ToolStripSeparator(),
new ShowAllToolStripItem(),
new ToolStripSeparator(),
new AutoFilterToolStripItem()});
// ドロップダウンオブジェクトの大きさを既定の200%に拡大します。
headerDropDownContextMenu1.TouchDropDownScale = 2.0F;
columnHeaderCell.DropDownContextMenuStrip = headerDropDownContextMenu1;
gcMultiRow1.Template = template;

また、次のコードは、InputManCellのGcDateTimeCellおよびPlusPakCellのGcColorPickerCellのドロップダウンオブジェクトの大きさを既定の250%に拡大します。
Imports GrapeCity.Win.MultiRow
Imports InputManCell = GrapeCity.Win.MultiRow.InputMan
Imports PlusPakCell = GrapeCity.Win.MultiRow.PlusPak
Dim GcDateTimeCell1 As New InputManCell.GcDateTimeCell()
' ドロップダウンオブジェクトの大きさを既定の250%に拡大します。
GcDateTimeCell1.TouchDropDownScale = 2.5F
Dim GcColorPickerCell1 As New PlusPakCell.GcColorPickerCell()
' ドロップダウンオブジェクトの大きさを既定の250%に拡大します。
GcColorPickerCell1.DropDownSettings.TouchDropDownScale = 2.5F
GcMultiRow1.Template = Template.CreateGridTemplate(New Cell() {GcDateTimeCell1, GcColorPickerCell1})
using GrapeCity.Win.MultiRow;
using InputManCell = GrapeCity.Win.MultiRow.InputMan;
using PlusPakCell = GrapeCity.Win.MultiRow.PlusPak;
InputManCell.GcDateTimeCell gcDateTimeCell1 = new InputManCell.GcDateTimeCell();
// ドロップダウンオブジェクトの大きさを既定の250%に拡大します。
gcDateTimeCell1.TouchDropDownScale = 2.5F;
PlusPakCell.GcColorPickerCell gcColorPickerCell1 = new PlusPakCell.GcColorPickerCell();
// ドロップダウンオブジェクトの大きさを既定の250%に拡大します。
gcColorPickerCell1.DropDownSettings.TouchDropDownScale = 2.5F;
gcMultiRow1.Template = Template.CreateGridTemplate(new Cell[] { gcDateTimeCell1, gcColorPickerCell1});
