Class RadMarkupEditor
A rich text markup editor control that provides a ribbon-based user interface for text formatting and HTML editing.
Inheritance
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMarkupEditor.dll
Syntax
public class RadMarkupEditor : UserControl, IRadMarkupEditor
Constructors
RadMarkupEditor()
Properties
ApplyButton
Gets the main apply button element that commits changes and closes the editor.
Declaration
public RadButtonElement ApplyButton { get; }
Property Value
RadButtonElement
|
BackColorButton
Gets the button element for changing text background color.
Declaration
public RadButtonElement BackColorButton { get; }
Property Value
RadButtonElement
|
BoldButton
Gets the button element for applying bold formatting.
Declaration
public RadButtonElement BoldButton { get; }
Property Value
RadButtonElement
|
CopyButton
Gets the copy button element in the design view.
Declaration
public RadButtonElement CopyButton { get; }
Property Value
RadButtonElement
|
CopyButton2
Gets the copy button element in the markup view.
Declaration
public RadButtonElement CopyButton2 { get; }
Property Value
RadButtonElement
|
CutButton
Gets the cut button element in the design view.
Declaration
public RadButtonElement CutButton { get; }
Property Value
RadButtonElement
|
CutButton2
Gets the cut button element in the markup view.
Declaration
public RadButtonElement CutButton2 { get; }
Property Value
RadButtonElement
|
DefaultFont
Gets or sets the default font used for text in the markup editor.
Declaration
public Font DefaultFont { get; set; }
Property Value
System.Drawing.Font
|
DesignViewDomDocument
Gets the underlying HTML document object model of the design view.
Declaration
public IHTMLDocument2 DesignViewDomDocument { get; }
Property Value
mshtml.IHTMLDocument2
|
Implements
FontFamilyDropDownList
Gets the dropdown list element for selecting font families.
Declaration
public RadDropDownListElement FontFamilyDropDownList { get; }
Property Value
RadDropDownListElement
|
FontSizeDropDownList
Gets the dropdown list element for selecting font sizes.
Declaration
public RadDropDownListElement FontSizeDropDownList { get; }
Property Value
RadDropDownListElement
|
ForeColorButton
Gets the button element for changing text color.
Declaration
public RadButtonElement ForeColorButton { get; }
Property Value
RadButtonElement
|
HyperlinkButton
Gets the button element for inserting or editing a hyperlink.
Declaration
public RadButtonElement HyperlinkButton { get; }
Property Value
RadButtonElement
|
IsValueSaved
Gets a value indicating whether the current content has been saved.
Declaration
public bool IsValueSaved { get; }
Property Value
System.Boolean
|
ItalicButton
Gets the button element for applying italic formatting.
Declaration
public RadButtonElement ItalicButton { get; }
Property Value
RadButtonElement
|
OrderedListButton
Gets the button element for creating or formatting an ordered (numbered) list.
Declaration
public RadButtonElement OrderedListButton { get; }
Property Value
RadButtonElement
|
PasteButton
Gets the paste button element in the design view.
Declaration
public RadButtonElement PasteButton { get; }
Property Value
RadButtonElement
|
PasteButton2
Gets the paste button element in the markup view.
Declaration
public RadButtonElement PasteButton2 { get; }
Property Value
RadButtonElement
|
RawValue
Gets the complete HTML content including root HTML tags, with all symbols properly escaped.
Declaration
public string RawValue { get; }
Property Value
System.String
|
RedoButton
Gets the button element for redoing the last undone operation.
Declaration
public RadButtonElement RedoButton { get; }
Property Value
RadButtonElement
|
RibbonBar
Gets the ribbon bar control used in the editor's interface.
Declaration
public RadRibbonBar RibbonBar { get; }
Property Value
RadRibbonBar
|
SmallApplyButton
Gets the small apply button element in the quick access toolbar.
Declaration
public RadButtonElement SmallApplyButton { get; }
Property Value
RadButtonElement
|
UnderlineButton
Gets the button element for applying underline formatting.
Declaration
public RadButtonElement UnderlineButton { get; }
Property Value
RadButtonElement
|
UndoButton
Gets the button element for undoing the last operation.
Declaration
public RadButtonElement UndoButton { get; }
Property Value
RadButtonElement
|
UnorderedListButton
Gets the button element for creating or formatting an unordered (bulleted) list.
Declaration
public RadButtonElement UnorderedListButton { get; }
Property Value
RadButtonElement
|
Value
Gets or sets the HTML content being edited in the markup editor.
Declaration
public string Value { get; set; }
Property Value
System.String
|
Implements
Methods
ChangeModeInternal(EditorMode)
Changes the internal editing mode of the editor.
Declaration
public void ChangeModeInternal(EditorMode value)
Parameters
EditorMode
value
The editing mode to set. |
Implements
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
true if managed resources should be disposed; otherwise, false. |
InsertHtml(String)
Inserts HTML content at the current cursor position.
Declaration
public void InsertHtml(string html)
Parameters
System.String
html
The HTML content to insert. |
Implements
Exceptions
System.NotImplementedException
This method is not currently implemented. |
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.
Declaration
public event EventHandler EditorClosed
Event Type
System.EventHandler
|