Version

CanPerformAction Method

Returns a boolean indicating if the control is in a state that allows the specified action to be performed.
Syntax
'Declaration
 
Public Function CanPerformAction( _
   ByVal action As UltraSpreadsheetAction, _
   Optional ByVal currentState As Nullable(Of UltraSpreadsheetState) _
) As Boolean

Parameters

action
The action to evaluate
currentState
A nullable enumeration indicating the current state. If you will be calling this many times within a block of code then it will be more effecient to get the CurrentState once within that method and pass that value in. If null is passed in the CurrentState will be used.

Return Value

Returns true if the action can be performed; otherwise false is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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