Spread Windows Forms 6.0 Product Documentation
OnEditorFocused Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : OnEditorFocused Method


e
EditorNotifyEventArgs object containing event arguments

Glossary Item Box

Raises the EditorFocused event.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub OnEditorFocused( _
   ByVal e As EditorNotifyEventArgs _
) 
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim e As EditorNotifyEventArgs
 
instance.OnEditorFocused(e)
C# 
protected virtual void OnEditorFocused( 
   EditorNotifyEventArgs e
)

Parameters

e
EditorNotifyEventArgs object containing event arguments

Example

The example uses the EditorFocused event.
C#Copy Code
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;
            }
        }
Visual BasicCopy Code
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.