Spread Windows Forms 9.0 Product Documentation
OnEditorFocused Method
Example 


EditorNotifyEventArgs object that contains event arguments
Raises the EditorFocused event.
Syntax
'Declaration
 
Protected Overridable Sub OnEditorFocused( _
   ByVal e As EditorNotifyEventArgs _
) 
'Usage
 
Dim instance As FpSpread
Dim e As EditorNotifyEventArgs
 
instance.OnEditorFocused(e)
protected virtual void OnEditorFocused( 
   EditorNotifyEventArgs e
)

Parameters

e
EditorNotifyEventArgs object that contains event arguments
Example
The example uses the EditorFocused event.
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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

FpSpread Class
FpSpread Members

 

 


Copyright © GrapeCity, inc. All rights reserved.