New to Telerik UI for WinForms? Start a free 30-day trial

Holds the editor, source text, language, and display options used to initialize a code-formatting dialog.

Definition

Namespace:Telerik.WinForms.Documents.UI.Extensibility

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class CodeFormattingDialogContext

Inheritance: objectCodeFormattingDialogContext

Constructors

Initializes the context for a code-formatting dialog associated with an editor.

C#
public CodeFormattingDialogContext(RadRichTextBox owner)
Parameters:ownerRadRichTextBox

The editor that provides formatting services and receives the resulting code block.

Properties

Gets or sets the source text shown in the code editor.

C#
public string Code { get; set; }

Gets or sets whether alternating line shading is enabled for the inserted code block.

C#
public bool IsAlternatingLinesEnabled { get; set; }

Gets or sets whether line numbering is enabled for the inserted code block.

C#
public bool IsLineNumberingEnabled { get; set; }

Gets or sets the code-language name used for the initial selection; if it is unavailable, the dialog selects its first language.

C#
public string Language { get; set; }

Gets the editor that supplies the formatter and receives the inserted code block.

C#
public RadRichTextBox Owner { get; }