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