Class CodeAnnotationRangeStart
Represents the start marker of a code annotation range in a RadDocument. Provides properties for specifying the language, line numbering, and alternating line options for the annotated code block. Inherits from AnnotationRangeStart and implements Telerik.Windows.Documents.Model.ICodeRangeMarker.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class CodeAnnotationRangeStart : AnnotationRangeStart, ICodeRangeMarker
Constructors
CodeAnnotationRangeStart()
Declaration
public CodeAnnotationRangeStart()
Properties
IsAlternatingLinesEnabled
Gets or sets a value indicating whether alternating lines are enabled for the code annotation range start.
Declaration
[XamlSerializable]
public bool IsAlternatingLinesEnabled { get; set; }
Property Value
System.Boolean
A boolean value that determines if alternating lines are applied. Returns true if alternating lines are enabled; otherwise, false. |
IsLineNumberingEnabled
Gets or sets a value indicating whether line numbering is enabled for the code annotation range start.
Declaration
[XamlSerializable]
public bool IsLineNumberingEnabled { get; set; }
Property Value
System.Boolean
true if line numbering is enabled; otherwise, false. |
IsRangeEditable
Gets a value indicating whether the range represented by the code annotation start is editable.
Declaration
public override bool IsRangeEditable { get; }
Property Value
System.Boolean
|
Overrides
Language
Gets or sets the language of the code annotation range start.
Declaration
[XamlSerializable]
public string Language { get; set; }
Property Value
System.String
The language represented as a string. |
SkipPositionBefore
Gets or sets the position that the code annotation range should skip before.
Declaration
public override bool SkipPositionBefore { get; }
Property Value
System.Boolean
The position to skip before the code annotation range. |
Overrides
Methods
CopyContentFromOverride(DocumentElement)
Declaration
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters
DocumentElement
fromElement
|
Overrides
CopyPropertiesFromOverride(DocumentElement)
Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
DocumentElement
fromElement
|
Overrides
CreateNewElementInstance()
Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
DocumentElement
|