Class
CodeFormattingSettings

Represents setting used from CodeFormatter to format source code .

Definition

Namespace:Telerik.Windows.Documents.Model.Code

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class CodeFormattingSettings

Inheritance: objectCodeFormattingSettings

Constructors

CodeFormattingSettings(CodeLanguage)

Initializes a new instance of the CodeFormattingSettings class. You can use the predefined languages from CodeLanguages class, or create custom ones.

Declaration

cs-api-definition
public CodeFormattingSettings(CodeLanguage codeLanguage)

Parameters

codeLanguage

CodeLanguage

The code language.

Properties

CodeLanguage

Gets or sets the code language.

Declaration

cs-api-definition
public CodeLanguage CodeLanguage { get; set; }

Property Value

CodeLanguage

The code language.

IsAlternatingLinesEnabled

Gets or sets a value indicating whether lines are formatted with alternating styles.

Declaration

cs-api-definition
public bool IsAlternatingLinesEnabled { get; set; }

Property Value

bool

IsLineNumberingEnabled

Gets or sets a value indicating whether line numbering is enabled.

Declaration

cs-api-definition
public bool IsLineNumberingEnabled { get; set; }

Property Value

bool