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 ICodeRangeMarker.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class CodeAnnotationRangeStart : AnnotationRangeStart

Inheritance: objectDocumentElementInlineAnnotationMarkerBaseAnnotationRangeMarkerBaseAnnotationRangeStartCodeAnnotationRangeStart

Inherited Members AnnotationRangeStart.EndAnnotationRangeStart.IsPairedAnnotationRangeStart.SkipPositionsInRangeAnnotationRangeStart.ShouldSpellcheckAnnotationRangeStart.IsRangeDeletableAnnotationMarkerBase.CreateLayoutBox(DocumentStructureCollection)AnnotationMarkerBase.AnnotationIDAnnotationMarkerBase.SkipPositionAfterAnnotationMarkerBase.IsWordSeparatorAnnotationMarkerBase.IsCopyableAnnotationMarkerBase.DeleteBehaviorAnnotationMarkerBase.BackspaceBehaviorAnnotationMarkerBase.DeleteSelectedBehaviorInline.CopyFromPositionToEndOfInline(DocumentPosition, DocumentPosition)Inline.CopyFromStartOfInlineToEndPosition(DocumentPosition)Inline.CopyContentFrom(DocumentElement)Inline.FieldStartDocumentElement.GetStyleProperty(IStylePropertyDefinition)DocumentElement.GetStyleProperty(string)DocumentElement.EnumerateChildrenOfType<T>()DocumentElement.GetParentOfType<T>()DocumentElement.CreateLayoutBox()DocumentElement.CopyPropertiesFrom(DocumentElement)DocumentElement.CopyPropertiesFromStyle(StyleDefinition)DocumentElement.ExtractStyleFromProperties()DocumentElement.ExtractStyleFromLocalProperties()DocumentElement.InvalidateAssociatedBoxesArrange()DocumentElement.InvalidateAssociatedBoxesMeasure()DocumentElement.InvalidateAssociatedBoxesLayout()DocumentElement.GetAssociatedLayoutBoxes()DocumentElement.GetRootDocument()DocumentElement.CreateDeepCopy()DocumentElement.CreateShallowCopy()DocumentElement.GetPropertyValueSource(IStylePropertyDefinition)DocumentElement.ClearValue(IStylePropertyDefinition)DocumentElement.OnRemoved()DocumentElement.OnStyleChanging()DocumentElement.OnStyleChanged()DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)DocumentElement.OnParentChanging()DocumentElement.OnParentChanged()DocumentElement.ChildIndexDocumentElement.HasStyleDocumentElement.StyleDocumentElement.StyleNameDocumentElement.TagDocumentElement.FirstLayoutBoxDocumentElement.IsFirstLayoutBoxInitializedDocumentElement.DocumentElementsDocumentElement.ParentDocumentElement.ChildrenDocumentElement.PreviousSiblingDocumentElement.NextSiblingDocumentElement.CursorDocumentElement.StyleChangingDocumentElement.StyleChangedDocumentElement.StylePropertyChangedDocumentElement.ParentChangingDocumentElement.ParentChangedDocumentElement.PropertyValueChanged

Constructors

CodeAnnotationRangeStart()

Declaration

cs-api-definition
public CodeAnnotationRangeStart()

Properties

IsAlternatingLinesEnabled

Gets or sets a value indicating whether alternating lines are enabled for the code annotation range start.

Declaration

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

Property Value

bool

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

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

Property Value

bool

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

cs-api-definition
public override bool IsRangeEditable { get; }

Property Value

bool

Overrides AnnotationRangeStart.IsRangeEditable

Language

Gets or sets the language of the code annotation range start.

Declaration

cs-api-definition
[XamlSerializable]
public string Language { get; set; }

Property Value

string

The language represented as a string.

SkipPositionBefore

Gets or sets the position that the code annotation range should skip before.

Declaration

cs-api-definition
public override bool SkipPositionBefore { get; }

Property Value

bool

The position to skip before the code annotation range.

Overrides AnnotationMarkerBase.SkipPositionBefore

Methods

CopyContentFromOverride(DocumentElement)

Copies the content from another Inline.

Declaration

cs-api-definition
protected override void CopyContentFromOverride(DocumentElement fromElement)

Parameters

fromElement

DocumentElement

The Inline to copy the content from.

Exceptions

NullReferenceException

fromElement must not be null.

InvalidOperationException

Cannot copy content to element itself.

Overrides Inline.CopyContentFromOverride(DocumentElement)

CopyPropertiesFromOverride(DocumentElement)

Copies the properties from another document element to the current instance.

Declaration

cs-api-definition
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)

Parameters

fromElement

DocumentElement

The AnnotationMarkerBase to copy the properties from.

Overrides AnnotationMarkerBase.CopyPropertiesFromOverride(DocumentElement)

CreateNewElementInstance()

Creates a new instance of this element.

Declaration

cs-api-definition
protected override DocumentElement CreateNewElementInstance()

Returns

DocumentElement

The new instance.

Overrides DocumentElement.CreateNewElementInstance()