Class RadMarkupDialog
A dialog that allows users to edit and apply markup formatting to text.
Inheritance
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMarkupEditor.dll
Syntax
[TelerikToolboxCategory("Dialogs")]
public class RadMarkupDialog : CommonDialog
Constructors
RadMarkupDialog()
Properties
DefaultFont
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.
Declaration
public Font DefaultFont { get; set; }
Property Value
System.Drawing.Font
|
Editor
Gets the RadMarkupEditor instance used within the dialog.
Declaration
public RadMarkupEditor Editor { get; }
Property Value
RadMarkupEditor
|
Form
Gets the ShapedForm instance used to host the markup editor.
Declaration
public ShapedForm Form { get; }
Property Value
ShapedForm
|
ThemeName
Gets or sets the name of the theme applied to the dialog.
Declaration
public string ThemeName { get; set; }
Property Value
System.String
|
Value
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.
Declaration
public string Value { get; set; }
Property Value
System.String
|
Methods
Dispose(Boolean)
Releases the resources used by the RadMarkupDialog.
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
A value indicating whether the method was invoked by a System.IDisposable.Dispose() call. |
Reset()
Resets the dialog by clearing the markup text value.
Declaration
public override void Reset()
RunDialog(IntPtr)
Displays the modal dialog box.
Declaration
protected override bool RunDialog(IntPtr hwndOwner)
Parameters
System.IntPtr
hwndOwner
The window handle of the owner window for the dialog. |
Returns
System.Boolean
|