Spread WPF 18
GrapeCity.Wpf.SpreadSheet.UI.Commands Namespace / SpreadCommand Class / CanExecute Method / CanExecute(Object,GcSpreadSheet) Method
User defined parameter to be passed to the handler.
GrapeCity.Wpf.SpreadSheet.GcSpreadSheet at which to begin looking for command handlers.


In This Topic
    CanExecute(Object,GcSpreadSheet) Method
    In This Topic
    Determines whether this SpreadCommand can execute in GrapeCity.Wpf.SpreadSheet.GcSpreadSheet's current state.
    Syntax
    'Declaration
     
    Public Overloads Function CanExecute( _
       ByVal parameter As Object, _
       ByVal spread As GcSpreadSheet _
    ) As Boolean
    'Usage
     
    Dim instance As SpreadCommand
    Dim parameter As Object
    Dim spread As GcSpreadSheet
    Dim value As Boolean
     
    value = instance.CanExecute(parameter, spread)
    public bool CanExecute( 
       object parameter,
       GcSpreadSheet spread
    )

    Parameters

    parameter
    User defined parameter to be passed to the handler.
    spread
    GrapeCity.Wpf.SpreadSheet.GcSpreadSheet at which to begin looking for command handlers.

    Return Value

    true if the command can execute on the current command target; otherwise, false.
    See Also