FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ActionMap Class : Get Method |
This example returns the map for the InputMap object.
Note: This returns the obfuscated string of the StopEditingAction class, which is the default map for the Enter key. It is a meaningless string to the user. The object variable would return the StopEditing action.
FarPoint.Win.Spread.Keystroke k = new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None);
Object obj = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused).Get(k);
FarPoint.Win.Spread.ActionMap map = fpSpread1.GetActionMap();
listBox1.Items.Add(map.Get(obj));
Dim k As New FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None) Dim obj As Object = FpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused).Get(k) Dim map As FarPoint.Win.Spread.ActionMap = FpSpread1.GetActionMap() ListBox1.Items.Add(map.Get(obj))
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8