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

A dialog that allows users to edit and apply markup formatting to text.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMarkupEditor.dll

Syntax:

C#
[TelerikToolboxCategory("Dialogs")]
public class RadMarkupDialog : CommonDialog, IComponent, IDisposable

Inheritance: objectMarshalByRefObjectComponentCommonDialogRadMarkupDialog

Implements: IComponentIDisposable

Constructors

Initializes a new instance of the RadMarkupDialog class.

C#
public RadMarkupDialog()

Properties

Gets or sets the default font used when the editor is started. No formatting tags are added for this font as it is considered the default. Users can still explicitly set font name and size using the editor controls.

C#
public Font DefaultFont { get; set; }

Gets the RadMarkupEditor instance used within the dialog.

C#
public RadMarkupEditor Editor { get; }

Gets the ShapedForm instance used to host the markup editor.

C#
public ShapedForm Form { get; }

Gets or sets the name of the theme applied to the dialog.

C#
public string ThemeName { get; set; }

Gets or sets the markup text being edited. Set this property before showing the dialog to provide initial content, and retrieve it after the dialog closes to get the user's changes. Use the DialogResult to determine if the user applied changes or canceled.

C#
public string Value { get; set; }

Methods

Releases the resources used by the RadMarkupDialog.

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

A value indicating whether the method was invoked by a Dispose() call.

Overrides: Component.Dispose(bool)

Resets the dialog by clearing the markup text value.

C#
public override void Reset()

Overrides: CommonDialog.Reset()

Displays the modal dialog box.

C#
protected override bool RunDialog(IntPtr hwndOwner)
Parameters:hwndOwnerIntPtr

The window handle of the owner window for the dialog.

Returns:

bool

true if the user clicked OK or Apply in the dialog; otherwise, false.

Overrides: CommonDialog.RunDialog(IntPtr)