Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents.UI Namespace > DocumentViewerCommands Class > CanRun Method : CanRun(String,Object) Method |
public bool CanRun( string commandName, object value )
'Declaration
Public Overloads Function CanRun( _ ByVal commandName As String, _ ByVal value As Object _ ) As Boolean
'Usage
Dim instance As DocumentViewerCommands Dim commandName As String Dim value As Object Dim value As Boolean value = instance.CanRun(commandName, value)
public: bool CanRun( String^ commandName, Object^ value )
This method checks if the command exists and if it has a CanRunHandler callback value that is not null, if so, it will invoke the callback with value and returns the result.
If the command does not exist or it does not have a handler, then this method returns false - the command cannot run.
Refer to Document Viewer Commands for more information.