RadMarkupEditor
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:
public class RadMarkupEditor : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IRadMarkupEditor
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlUserControlRadMarkupEditor...
Implements:
Constructors
Initializes a new instance of the RadMarkupEditor class.
public RadMarkupEditor()
Properties
Gets the main apply button element that commits changes and closes the editor.
public RadButtonElement ApplyButton { get; }
Gets the button element for changing text background color.
public RadButtonElement BackColorButton { get; }
Gets the button element for applying bold formatting.
public RadButtonElement BoldButton { get; }
Gets the copy button element in the design view.
public RadButtonElement CopyButton { get; }
Gets the copy button element in the markup view.
public RadButtonElement CopyButton2 { get; }
Gets the cut button element in the design view.
public RadButtonElement CutButton { get; }
Gets the cut button element in the markup view.
public RadButtonElement CutButton2 { get; }
Gets or sets the default font used for text in the markup editor.
public Font DefaultFont { get; set; }
DesignViewDomDocument
IHTMLDocument2
Gets the underlying HTML document object model of the design view.
public IHTMLDocument2 DesignViewDomDocument { get; }
Implements:
Gets the dropdown list element for selecting font families.
public RadDropDownListElement FontFamilyDropDownList { get; }
Gets the dropdown list element for selecting font sizes.
public RadDropDownListElement FontSizeDropDownList { get; }
Gets the button element for changing text color.
public RadButtonElement ForeColorButton { get; }
Gets the button element for inserting or editing a hyperlink.
public RadButtonElement HyperlinkButton { get; }
Gets a value indicating whether the current content has been saved.
public bool IsValueSaved { get; }
Gets the button element for applying italic formatting.
public RadButtonElement ItalicButton { get; }
Gets the button element for creating or formatting an ordered (numbered) list.
public RadButtonElement OrderedListButton { get; }
Gets the paste button element in the design view.
public RadButtonElement PasteButton { get; }
Gets the paste button element in the markup view.
public RadButtonElement PasteButton2 { get; }
Gets the complete HTML content including root HTML tags, with all symbols properly escaped.
public string RawValue { get; }
Gets the button element for redoing the last undone operation.
public RadButtonElement RedoButton { get; }
Gets the ribbon bar control used in the editor's interface.
public RadRibbonBar RibbonBar { get; }
Gets the small apply button element in the quick access toolbar.
public RadButtonElement SmallApplyButton { get; }
Gets the button element for applying underline formatting.
public RadButtonElement UnderlineButton { get; }
Gets the button element for undoing the last operation.
public RadButtonElement UndoButton { get; }
Gets the button element for creating or formatting an unordered (bulleted) list.
public RadButtonElement UnorderedListButton { get; }
Methods
Changes the internal editing mode of the editor.
public void ChangeModeInternal(EditorMode value)
The editing mode to set.
Implements:
Clean up any resources being used.
protected override void Dispose(bool disposing)
true if managed resources should be disposed; otherwise, false.
Overrides:
Inserts HTML content at the current cursor position.
public void InsertHtml(string html)
The HTML content to insert.
Exceptions:This method is not currently implemented.
Implements:
Refreshes the user interface elements based on the current state of the editor.
public void InvokeUpdateUI()
Implements:
Applies the current localization settings to all UI elements in the editor.
protected virtual void LocalizeForm()
Events
Occurs when the editor is closed after applying changes.
public event EventHandler EditorClosed