Class CodeFormattingSettings
Represents setting used from CodeFormatter to format source code .
Inheritance
Namespace: Telerik.Windows.Documents.Model.Code
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class CodeFormattingSettings : Object
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
public CodeFormattingSettings(CodeLanguage codeLanguage)
Parameters
CodeLanguage
codeLanguage
The code language. |
Properties
CodeLanguage
Gets or sets the code language.
Declaration
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
public bool IsAlternatingLinesEnabled { get; set; }
Property Value
System.Boolean
|
IsLineNumberingEnabled
Gets or sets a value indicating whether line numbering is enabled.
Declaration
public bool IsLineNumberingEnabled { get; set; }
Property Value
System.Boolean
|