Spread Windows Forms 7.0 Product Documentation
Keys Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ActionMap Class : Keys Method


Glossary Item Box

Returns the keys defined in this action map.

Syntax

Visual Basic (Declaration) 
Public Function Keys() As Object()
Visual Basic (Usage)Copy Code
Dim instance As ActionMap
Dim value() As Object
 
value = instance.Keys()
C# 
public object[] Keys()

Return Value

Object array containing the defined keys

Example

This example returns the keys defined in the map.
C#Copy Code
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);

int i;
FarPoint.Win.Spread.ActionMap map = fpSpread1.GetActionMap();
FarPoint.Win.Spread.Action act = map.Get(obj);
map.Put(k, act);
for (i = 0; i <= map.Keys.Length - 1; i++)
{
       listBox1.Items.Add(map.Keys(i).ToString());
}
Visual BasicCopy Code
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 i As Integer
Dim map As FarPoint.Win.Spread.ActionMap = FpSpread1.GetActionMap()
Dim act As FarPoint.Win.Spread.Action = map.Get(obj)
map.Put(k, act)
For i = 0 To map.Keys.Length - 1
       ListBox1.Items.Add(map.Keys(i).ToString())
Next 

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.