作成日: 2018/09/14 最終更新日: 2018/09/14
文書種別
技術情報
詳細
InputManセルでは、他の組み込みのセル型とは異なった機能が備えられています。ショートカットキーを設定する場合、InputManセル独自の機能も解除しておく必要があります。(InputManセルのキーボード操作については、製品ヘルプをご覧ください。)
以下は、ショートカットの動作をキーに割り当てる例です。
◎サンプルコード(VB)
◎サンプルコード(C#)
以下は、ショートカットの動作をキーに割り当てる例です。
◎サンプルコード(VB)
Dim textCell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textCell.Multiline = True
' 設定中のショートカットキー削除
textCell.ShortcutKeys.Remove(Keys.Return Or Keys.Alt)
' ショートカットキー設定
textCell.ShortcutKeys.Add(Keys.Return Or Keys.Alt, "InputNewLine")
FpSpread1.ActiveSheet.Cells(0, 0).CellType = textCell
textCell.Multiline = True
' 設定中のショートカットキー削除
textCell.ShortcutKeys.Remove(Keys.Return Or Keys.Alt)
' ショートカットキー設定
textCell.ShortcutKeys.Add(Keys.Return Or Keys.Alt, "InputNewLine")
FpSpread1.ActiveSheet.Cells(0, 0).CellType = textCell
◎サンプルコード(C#)
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textCell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textCell.Multiline = true;
// 設定中のショートカットキー削除
textCell.ShortcutKeys.Remove(Keys.Return | Keys.Alt);
// ショートカットキー設定
textCell.ShortcutKeys.Add(Keys.Return | Keys.Alt, "InputNewLine");
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType gtcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
fpSpread1.ActiveSheet.Cells[0, 0].CellType = textCell;
textCell.Multiline = true;
// 設定中のショートカットキー削除
textCell.ShortcutKeys.Remove(Keys.Return | Keys.Alt);
// ショートカットキー設定
textCell.ShortcutKeys.Add(Keys.Return | Keys.Alt, "InputNewLine");
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType gtcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
fpSpread1.ActiveSheet.Cells[0, 0].CellType = textCell;
旧文書番号
83233