New to Telerik UI for WPFStart a free 30-day trial

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:

C#
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

C#
public CodeAnnotationRangeStart()

Properties

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

C#
[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.

Gets or sets a value indicating whether line numbering is enabled for the code annotation range start.

C#
[XamlSerializable]
public bool IsLineNumberingEnabled { get; set; }
Property Value:

true if line numbering is enabled; otherwise, false.

Gets a value indicating whether the range represented by the code annotation start is editable.

C#
public override bool IsRangeEditable { get; }

Overrides: AnnotationRangeStart.IsRangeEditable

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

C#
[XamlSerializable]
public string Language { get; set; }
Property Value:

The language represented as a string.

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

C#
public override bool SkipPositionBefore { get; }
Property Value:

The position to skip before the code annotation range.

Overrides: AnnotationMarkerBase.SkipPositionBefore

Methods

Copies the content from another Inline.

C#
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters:fromElementDocumentElement

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)

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

C#
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters:fromElementDocumentElement

The AnnotationMarkerBase to copy the properties from.

Overrides: AnnotationMarkerBase.CopyPropertiesFromOverride(DocumentElement)

Creates a new instance of this element.

C#
protected override DocumentElement CreateNewElementInstance()
Returns:

DocumentElement

The new instance.

Overrides: DocumentElement.CreateNewElementInstance()