Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SpreadView Class / MoveActiveOnFocus Property
Example


In This Topic
    MoveActiveOnFocus Property (SpreadView)
    In This Topic
    Gets or sets whether the location of the active cell in the view moves when the user moves the focus to the view using the mouse.
    Syntax
    'Declaration
     
    Public Property MoveActiveOnFocus As Boolean
    'Usage
     
    Dim instance As SpreadView
    Dim value As Boolean
     
    instance.MoveActiveOnFocus = value
     
    value = instance.MoveActiveOnFocus
    public bool MoveActiveOnFocus {get; set;}

    Property Value

    Boolean: true to move focus; false otherwise
    Example
    This example sets the MoveActiveOnFocus property.
    FarPoint.Win.Spread.SpreadView sv = fpSpread1.GetRootWorkbook();
    sv.MoveActiveOnFocus = false;
    Dim sv As FarPoint.Win.Spread.SpreadView = FpSpread1.GetRootWorkbook
    sv.MoveActiveOnFocus = False
    See Also