Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / EditModeStartingEventArgs Class / Cancel Property
Example


In This Topic
    Cancel Property (EditModeStartingEventArgs)
    In This Topic
    Gets or sets whether to cancel edit mode.
    Syntax
    'Declaration
     
    Public Property Cancel As Boolean
    'Usage
     
    Dim instance As EditModeStartingEventArgs
    Dim value As Boolean
     
    instance.Cancel = value
     
    value = instance.Cancel
    public bool Cancel {get; set;}
    Example
    This example sets the Cancel property.
    private void fpSpread1_EditModeStarting(object sender, FarPoint.Win.Spread.EditModeStartingEventArgs e)
            {
                e.Cancel = true;
            }
    Private Sub FpSpread1_EditModeStarting(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.EditModeStartingEventArgs) Handles FpSpread1.EditModeStarting
            e.Cancel = True
        End Sub
    See Also