ClassCodeAnnotationRangeStart
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 ICodeRangeMarker.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class CodeAnnotationRangeStart : AnnotationRangeStart
Inheritance: objectDocumentElementInlineAnnotationMarkerBaseAnnotationRangeMarkerBaseAnnotationRangeStartCodeAnnotationRangeStart
Inherited Members
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
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
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
Overrides
Language
Gets or sets the language of the code annotation range start.
Declaration
[XamlSerializable]
public string Language { get; set; }
Property Value
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
The position to skip before the code annotation range.
Overrides
Methods
CopyContentFromOverride(DocumentElement)
Copies the content from another Inline.
Declaration
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters
fromElement
The Inline to copy the content from.
Exceptions
fromElement must not be null.
Cannot copy content to element itself.
Overrides
CopyPropertiesFromOverride(DocumentElement)
Copies the properties from another document element to the current instance.
Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
fromElement
The AnnotationMarkerBase to copy the properties from.
Overrides
CreateNewElementInstance()
Creates a new instance of this element.
Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
The new instance.
Overrides