private void Form1_Load(object sender, System.EventArgs e)
{
FarPoint.Win.Spread.InputMap im = new FarPoint.Win.Spread.InputMap();
im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
FarPoint.Win.Spread.ActionMap am = new FarPoint.Win.Spread.ActionMap();
am = fpSpread1.GetActionMap();
//作成したサブクラスを[F8]キーにマッピングします
im.Put(new FarPoint.Win.Spread.Keystroke(Keys.F8, Keys.None), "ColorAction");
am.Put("ColorAction", new ColorAction());
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim im As New FarPoint.Win.Spread.InputMap
im = FpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)
Dim am As New FarPoint.Win.Spread.ActionMap
am = FpSpread1.GetActionMap()
'作成したサブクラスを[F8]キーにマッピングします
im.Put(New FarPoint.Win.Spread.Keystroke(Keys.F8, Keys.None), "ColorAction")
am.Put("ColorAction", New ColorAction)
End Sub