PowerTools SPREAD for Windows Forms 8.0J
OnEditorFocused メソッド


イベント引数を含む EditorNotifyEventArgs オブジェクト。
EditorFocusedイベントを発生させます。
構文
'Declaration
 
Protected Overridable Sub OnEditorFocused( _
   ByVal e As EditorNotifyEventArgs _
) 
'使用法
 
Dim instance As FpSpread
Dim e As EditorNotifyEventArgs
 
instance.OnEditorFocused(e)
protected virtual void OnEditorFocused( 
   EditorNotifyEventArgs e
)

パラメータ

e
イベント引数を含む EditorNotifyEventArgs オブジェクト。
次のサンプルコードは、EditorFocusedイベントを使用します。
private void fpSpread1_EditorFocused(object sender, FarPoint.Win.Spread.EditorNotifyEventArgs e)
        {
            if (e.Row == 2 & e.Column == 2)
            {
FarPoint.Win.Spread.CellType.GeneralEditor g = default(FarPoint.Win.Spread.CellType.GeneralEditor);
g = (FarPoint.Win.Spread.CellType.GeneralEditor)fpSpread1.EditingControl;
g.SelectionStart = 1;
            }
        }
Private Sub FpSpread1_EditorFocused(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.EditorNotifyEventArgs) Handles
FpSpread1.EditorFocused
If e.Row = 2 And e.Column = 2 Then
Dim g As GeneralEditor
g = CType(FpSpread1.EditingControl, GeneralEditor)
g.SelectionStart = 1
End If
End Sub
参照

FpSpread クラス
FpSpread メンバ

 

 


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