Class CommandBase
Provides the base implementation for all the Command classes.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.UWP.dll
Syntax
public class CommandBase : Object, ICommand
Constructors
CommandBase(SfRichTextBoxAdv)
Initializes a new instance of the CommandBase class for the specified SfRichTextBoxAdv.
Declaration
public CommandBase(SfRichTextBoxAdv richTextBoxAdv)
Parameters
Type | Name | Description |
---|---|---|
SfRichTextBoxAdv | richTextBoxAdv | The SfRichTextBoxAdv instance to which the CommandBase is associated. |
Fields
OwnerControl
Gets or Sets the owner control of the command.
Declaration
public SfRichTextBoxAdv OwnerControl
Field Value
Type | Description |
---|---|
SfRichTextBoxAdv | The SfRichTextBoxAdv instance to which the command is associated. |
Methods
CanExecute(Object)
Defines the method that determines whether the command can execute in its current state.
Declaration
public bool CanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | Data used by the command. If the command does not require data to be passed, this object can be set to null. |
Returns
Type | Description |
---|---|
System.Boolean | True if this command can be executed. |
CanExecuteCommand(Object)
Defines the method that determines whether the command can execute in its current state.
Declaration
public virtual bool CanExecuteCommand(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | Data used by the command. If the command does not require data to be passed, this object can be set to null. |
Returns
Type | Description |
---|---|
System.Boolean | True if this command can be executed. |
Execute(Object)
Defines the method to be called when the command is invoked.
Declaration
public void Execute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | Data used by the command. If the command does not require data to be passed, this object can be set to null. |
ExecuteCommand(Object)
Defines the method to be called when the command is invoked.
Declaration
protected virtual void ExecuteCommand(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | Data used by the command. If the command does not require data to be passed, this object can be set to null. |
Events
CanExecuteChanged
Occurs when changes occur that affect whether or not the command should execute.
Declaration
public event EventHandler CanExecuteChanged
Event Type
Type |
---|
System.EventHandler |