ClassCodeFormattingSettings
Class
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
The code language.
Properties
CodeLanguage
Gets or sets the code language.
Declaration
cs-api-definition
public CodeLanguage CodeLanguage { get; set; }
Property Value
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
IsLineNumberingEnabled
Gets or sets a value indicating whether line numbering is enabled.