HtmlCommand
Class
Represents a base command for HTML editing operations in the markup editor.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMarkupEditor.dll
Syntax:
C#
public class HtmlCommand
Inheritance: objectHtmlCommand
Derived Classes:
Constructors
Initializes a new instance of the HtmlCommand class.
C#
public HtmlCommand(string command, IRadMarkupEditor editor)
The HTML command string.
editorIRadMarkupEditorThe markup editor instance.
Properties
Gets a value indicating whether the command is appropriate for the current context.
C#
protected virtual bool Appropriate { get; }
Document
IHTMLDocument2
Gets the HTML document associated with this command.
C#
protected IHTMLDocument2 Document { get; }
Gets the markup editor instance.
C#
protected IRadMarkupEditor Editor { get; }
Methods
Executes the command without parameters.
C#
public bool Execute()
True if the command was executed successfully; otherwise, false.