PowerTools SPREAD for Windows Forms 10.0J
Keys メソッド (ActionMap)


このアクションマップに定義されているキーを返します。
構文
'Declaration
 
Public Function Keys() As Object()
'使用法
 
Dim instance As ActionMap
Dim value() As Object
 
value = instance.Keys()
public object[] Keys()

戻り値の型

定義されたキーを含む Object の配列
次のサンプルコードは、マップで定義されたキーを返します。
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());
}
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 
参照

ActionMap クラス
ActionMap メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.