Marks the start of a code block range and stores its language and line-display settings.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class CodeAnnotationRangeStart : AnnotationRangeStart, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectDocumentElementInlineAnnotationMarkerBaseAnnotationRangeMarkerBaseAnnotationRangeStartCodeAnnotationRangeStart...
Implements:
Inherited Members
Constructors
public CodeAnnotationRangeStart()
Properties
Gets or sets whether alternating lines in the code block use different background formatting.
[XamlSerializable]
public bool IsAlternatingLinesEnabled { get; set; }
Gets or sets whether the code block's paragraphs use list numbering to display line numbers.
[XamlSerializable]
public bool IsLineNumberingEnabled { get; set; }
Gets a value indicating whether this range is editable.
public override bool IsRangeEditable { get; }
true if this range is editable; otherwise, false.
Overrides:
Gets or sets the language name associated with this code block; HTML export writes it to the block's data-language attribute.
[XamlSerializable]
public string Language { get; set; }
Determines if the CaretPosition will be put before or after the annotation marker.
If the value of this property is true for an AnnotationRangeStart, then if you move the caret to the annotation start and start typing,
the newly inserted text will be considered as part of the annotation. Vice versa, if it is set to false, the typed text will be inserted before the annotation.
public override bool SkipPositionBefore { get; }
true if the position before the marker will be skipped; otherwise, false.
Overrides:
Methods
Does not copy content because the range marker contains no text.
protected override void CopyContentFromOverride(DocumentElement fromElement)
The source marker used by the document-element copy operation.
Overrides:
Copies the language and line-display settings from another code range start.
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
The source code range start.
Overrides:
Creates a new start marker when this code annotation is cloned.
protected override DocumentElement CreateNewElementInstance()
Overrides: