Class
HtmlCommand

Represents a base command for HTML editing operations in the markup editor.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMarkupEditor.dll

Syntax:

cs-api-definition
public class HtmlCommand

Inheritance: objectHtmlCommand

Derived Classes: EditStackCommandHtmlCommandWithValue

Constructors

HtmlCommand(string, IRadMarkupEditor)

Initializes a new instance of the HtmlCommand class.

Declaration

cs-api-definition
public HtmlCommand(string command, IRadMarkupEditor editor)

Parameters

command

string

The HTML command string.

editor

IRadMarkupEditor

The markup editor instance.

Properties

Appropriate

Gets a value indicating whether the command is appropriate for the current context.

Declaration

cs-api-definition
protected virtual bool Appropriate { get; }

Property Value

bool

Command

Gets the command string.

Declaration

cs-api-definition
protected string Command { get; }

Property Value

string

Document

Gets the HTML document associated with this command.

Declaration

cs-api-definition
protected IHTMLDocument2 Document { get; }

Property Value

IHTMLDocument2

Editor

Gets the markup editor instance.

Declaration

cs-api-definition
protected IRadMarkupEditor Editor { get; }

Property Value

IRadMarkupEditor

Enabled

Gets or sets a value indicating whether the command is enabled.

Declaration

cs-api-definition
public bool Enabled { get; set; }

Property Value

bool

Methods

Execute()

Executes the command without parameters.

Declaration

cs-api-definition
public bool Execute()

Returns

bool

True if the command was executed successfully; otherwise, false.

Execute(object)

Executes the command with the specified value.

Declaration

cs-api-definition
public virtual bool Execute(object value)

Parameters

value

object

The command parameter value.

Returns

bool

True if the command was executed successfully; otherwise, false.