New to Telerik UI for WinFormsStart a free 30-day trial

A rich text markup editor control that provides a ribbon-based user interface for text formatting and HTML editing.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMarkupEditor.dll

Syntax:

C#
public class RadMarkupEditor : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IRadMarkupEditor

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlUserControlRadMarkupEditor...

Implements: IBindableComponentIComponentIContainerControlIDisposableIDropTargetIRadMarkupEditorISynchronizeInvokeIWin32Window...

Constructors

Initializes a new instance of the RadMarkupEditor class.

C#
public RadMarkupEditor()

Properties

Gets the main apply button element that commits changes and closes the editor.

C#
public RadButtonElement ApplyButton { get; }

Gets the button element for changing text background color.

C#
public RadButtonElement BackColorButton { get; }

Gets the button element for applying bold formatting.

C#
public RadButtonElement BoldButton { get; }

Gets the copy button element in the design view.

C#
public RadButtonElement CopyButton { get; }

Gets the copy button element in the markup view.

C#
public RadButtonElement CopyButton2 { get; }

Gets the cut button element in the design view.

C#
public RadButtonElement CutButton { get; }

Gets the cut button element in the markup view.

C#
public RadButtonElement CutButton2 { get; }

Gets or sets the default font used for text in the markup editor.

C#
public Font DefaultFont { get; set; }

DesignViewDomDocument

IHTMLDocument2

Gets the underlying HTML document object model of the design view.

C#
public IHTMLDocument2 DesignViewDomDocument { get; }

Implements: IRadMarkupEditor.DesignViewDomDocument

Gets the dropdown list element for selecting font families.

C#
public RadDropDownListElement FontFamilyDropDownList { get; }

Gets the dropdown list element for selecting font sizes.

C#
public RadDropDownListElement FontSizeDropDownList { get; }

Gets the button element for changing text color.

C#
public RadButtonElement ForeColorButton { get; }

Gets the button element for inserting or editing a hyperlink.

C#
public RadButtonElement HyperlinkButton { get; }

Gets a value indicating whether the current content has been saved.

C#
public bool IsValueSaved { get; }

Gets the button element for applying italic formatting.

C#
public RadButtonElement ItalicButton { get; }

Gets the button element for creating or formatting an ordered (numbered) list.

C#
public RadButtonElement OrderedListButton { get; }

Gets the paste button element in the design view.

C#
public RadButtonElement PasteButton { get; }

Gets the paste button element in the markup view.

C#
public RadButtonElement PasteButton2 { get; }

Gets the complete HTML content including root HTML tags, with all symbols properly escaped.

C#
public string RawValue { get; }

Gets the button element for redoing the last undone operation.

C#
public RadButtonElement RedoButton { get; }

Gets the ribbon bar control used in the editor's interface.

C#
public RadRibbonBar RibbonBar { get; }

Gets the small apply button element in the quick access toolbar.

C#
public RadButtonElement SmallApplyButton { get; }

Gets the button element for applying underline formatting.

C#
public RadButtonElement UnderlineButton { get; }

Gets the button element for undoing the last operation.

C#
public RadButtonElement UndoButton { get; }

Gets the button element for creating or formatting an unordered (bulleted) list.

C#
public RadButtonElement UnorderedListButton { get; }

Gets or sets the HTML content being edited in the markup editor.

C#
public string Value { get; set; }

Implements: IRadMarkupEditor.Value

Methods

Changes the internal editing mode of the editor.

C#
public void ChangeModeInternal(EditorMode value)
Parameters:valueEditorMode

The editing mode to set.

Implements: IRadMarkupEditor.ChangeModeInternal(EditorMode)

Clean up any resources being used.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true if managed resources should be disposed; otherwise, false.

Overrides: ContainerControl.Dispose(bool)

Inserts HTML content at the current cursor position.

C#
public void InsertHtml(string html)
Parameters:htmlstring

The HTML content to insert.

Exceptions:

NotImplementedException

This method is not currently implemented.

Implements: IRadMarkupEditor.InsertHtml(string)

Refreshes the user interface elements based on the current state of the editor.

C#
public void InvokeUpdateUI()

Implements: IRadMarkupEditor.InvokeUpdateUI()

Applies the current localization settings to all UI elements in the editor.

C#
protected virtual void LocalizeForm()

Events

Occurs when the editor is closed after applying changes.

C#
public event EventHandler EditorClosed