skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadMarkupEditor

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

Inheritance
System.Object
RadMarkupEditor
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMarkupEditor.dll

Syntax

public class RadMarkupEditor : UserControl, IRadMarkupEditor

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
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
IRadMarkupEditor.DesignViewDomDocument

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
IRadMarkupEditor.Value

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
IRadMarkupEditor.ChangeModeInternal(EditorMode)

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
IRadMarkupEditor.InsertHtml(String)
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
IRadMarkupEditor.InvokeUpdateUI()

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

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.