Spread Windows Forms 7.0 Product Documentation
ShortcutKeys Property
See Also  Example Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > InputManCellTypeBase Class : ShortcutKeys Property


Glossary Item Box

Gets the InputMan EditingControl's shortcuts.

Syntax

Visual Basic (Declaration) 
Public Property ShortcutKeys As ShortcutDictionary
Visual Basic (Usage)Copy Code
Dim instance As InputManCellTypeBase
Dim value As ShortcutDictionary
 
instance.ShortcutKeys = value
 
value = instance.ShortcutKeys
C# 
public ShortcutDictionary ShortcutKeys {get; set;}

Property Value

A ShortcutDictionary value that represents all the editing control's shortcuts.

Remarks

You can add shortcuts to this dictionary. In edit mode, these shortcut keys have precedence over the Spread input maps. The cell uses the Spread input maps when not in edit mode.

Example

This example uses the ShortcutKeys property. Use the Tab key to put a date in the cell. The following image displays the list of actions that you can use.

C#Copy Code
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType inputcell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();            
inputcell.ShortcutKeys.Add(System.Windows.Forms.Keys.Tab, "SetNow");            
fpSpread1.Sheets[0].Cells[0, 0].CellType = inputcell;
//GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType gcText = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
//gcText.Multiline = true;
//gcText.ShortcutKeys.Add(Keys.Enter | Keys.Alt, "InputNewLine");
//fpSpread1.Sheets[0].Cells[0, 0].CellType = gcText;
VB.NETCopy Code
Dim inputcell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
inputcell.ShortcutKeys.Add(System.Windows.Forms.Keys.Tab, "SetNow")
FpSpread1.Sheets(0).Cells(0, 0).CellType = inputcell
'Dim gcText As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
'gcText.Multiline = True
'gcText.ShortcutKeys.Add(Keys.Enter Or Keys.Alt, "InputNewLine")
'FpSpread1.Sheets(0).Cells(0, 0).CellType = gcText

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.