[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.UI.Commands.SpreadCommand.CanExecute

CanExecute Method

CanExecute(object, GcSpreadSheet)

Determines whether this SpreadCommand can execute in GcSpreadSheet's current state.

Declaration
public bool CanExecute(object parameter, GcSpreadSheet spread)
Public Function CanExecute(parameter As Object, spread As GcSpreadSheet) As Boolean
Parameters
Type Name Description
object parameter

User defined parameter to be passed to the handler.

GcSpreadSheet spread

GcSpreadSheet at which to begin looking for command handlers.

Returns
Type Description
bool

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