Class HtmlCommand
Represents a base command for HTML editing operations in the markup editor.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMarkupEditor.dll
Syntax
public class HtmlCommand
Constructors
HtmlCommand(String, IRadMarkupEditor)
Initializes a new instance of the HtmlCommand class.
Declaration
public HtmlCommand(string command, IRadMarkupEditor editor)
Parameters
System.String
command
The HTML command string. |
IRadMarkupEditor
editor
The markup editor instance. |
Properties
Appropriate
Gets a value indicating whether the command is appropriate for the current context.
Declaration
protected virtual bool Appropriate { get; }
Property Value
System.Boolean
|
Command
Gets the command string.
Declaration
protected string Command { get; }
Property Value
System.String
|
Document
Gets the HTML document associated with this command.
Declaration
protected IHTMLDocument2 Document { get; }
Property Value
mshtml.IHTMLDocument2
|
Editor
Gets the markup editor instance.
Declaration
protected IRadMarkupEditor Editor { get; }
Property Value
IRadMarkupEditor
|
Enabled
Gets or sets a value indicating whether the command is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
System.Boolean
|
Methods
Execute()
Executes the command without parameters.
Declaration
public bool Execute()
Returns
System.Boolean
True if the command was executed successfully; otherwise, false. |
Execute(Object)
Executes the command with the specified value.
Declaration
public virtual bool Execute(object value)
Parameters
System.Object
value
The command parameter value. |
Returns
System.Boolean
True if the command was executed successfully; otherwise, false. |