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

Represents the context for the code formatting dialog in the Telerik UI framework.

Definition

Namespace:Telerik.Windows.Documents.UI.Extensibility

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class CodeFormattingDialogContext

Inheritance: objectCodeFormattingDialogContext

Constructors

C#
public CodeFormattingDialogContext(RadRichTextBox owner)
Parameters:ownerRadRichTextBox

Properties

Gets the code associated with the CodeFormattingDialogContext.

C#
public string Code { get; set; }

Gets or sets a value indicating whether alternating lines are enabled in the code formatting dialog context.

C#
public bool IsAlternatingLinesEnabled { get; set; }
Property Value:

true if alternating lines are enabled; otherwise, false.

Gets a value indicating whether line numbering is enabled in the code formatting dialog context.

C#
public bool IsLineNumberingEnabled { get; set; }

Gets or sets the language for the code formatting dialog context.

C#
public string Language { get; set; }
Property Value:

The language as a string that represents the locale or coding language used in the formatting process.

Gets the owner of the code formatting dialog context.

C#
public RadRichTextBox Owner { get; }