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:
public class CodeFormattingDialogContext
Inheritance: objectCodeFormattingDialogContext
Constructors
Initializes the context for a code-formatting dialog associated with an editor.
public CodeFormattingDialogContext(RadRichTextBox owner)
The editor that provides formatting services and receives the resulting code block.
Properties
Gets or sets the source text shown in the code editor.
public string Code { get; set; }
Gets or sets whether alternating line shading is enabled for the inserted code block.
public bool IsAlternatingLinesEnabled { get; set; }
Gets or sets whether line numbering is enabled for the inserted code block.
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.
public string Language { get; set; }
Gets the editor that supplies the formatter and receives the inserted code block.
public RadRichTextBox Owner { get; }