Error processing SSI file
LEADTOOLS Leadtools.Documents.UI (Leadtools.Documents.UI assembly)

Show in webframe

CanRun(String,Object) Method






Command name
Optional value to pass to the callback
Checks if a command can run with the specified optional value.
Syntax
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
) 

Parameters

commandName
Command name
value
Optional value to pass to the callback

Return Value

true if the command can run with the specified value; otherwise, false.
Remarks

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.

Requirements

Target Platforms

See Also

Reference

DocumentViewerCommands Class
DocumentViewerCommands Members
Overload List

Error processing SSI file
Leadtools.Documents.UI requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features