skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

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
System.Object
DocumentElement
Inline
AnnotationMarkerBase
AnnotationRangeMarkerBase
AnnotationRangeStart
CodeAnnotationRangeStart
Inherited Members
AnnotationRangeStart.End
AnnotationRangeStart.IsPaired
AnnotationRangeStart.SkipPositionsInRange
AnnotationRangeStart.ShouldSpellcheck
AnnotationRangeStart.IsRangeDeletable
AnnotationMarkerBase.CreateLayoutBox(DocumentStructureCollection)
AnnotationMarkerBase.AnnotationID
AnnotationMarkerBase.SkipPositionAfter
AnnotationMarkerBase.IsWordSeparator
AnnotationMarkerBase.IsCopyable
AnnotationMarkerBase.DeleteBehavior
AnnotationMarkerBase.BackspaceBehavior
AnnotationMarkerBase.DeleteSelectedBehavior
Inline.CopyFromPositionToEndOfInline(DocumentPosition, DocumentPosition)
Inline.CopyFromStartOfInlineToEndPosition(DocumentPosition)
Inline.CopyContentFrom(DocumentElement)
Inline.FieldStart
DocumentElement.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.add_StylePropertyChanged(StylePropertyChangeEventHandler)
DocumentElement.remove_StylePropertyChanged(StylePropertyChangeEventHandler)
DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)
DocumentElement.OnParentChanging()
DocumentElement.OnParentChanged()
DocumentElement.add_PropertyValueChanged(StylePropertyChangeEventHandler)
DocumentElement.remove_PropertyValueChanged(StylePropertyChangeEventHandler)
DocumentElement.ChildIndex
DocumentElement.HasStyle
DocumentElement.Style
DocumentElement.StyleName
DocumentElement.Tag
DocumentElement.FirstLayoutBox
DocumentElement.LastLayoutBox
DocumentElement.IsFirstLayoutBoxInitialized
DocumentElement.DocumentElements
DocumentElement.Parent
DocumentElement.Children
DocumentElement.PreviousSibling
DocumentElement.NextSibling
DocumentElement.Cursor
DocumentElement.OriginalProperties
DocumentElement.RevisionInfo
DocumentElement.StyleChanging
DocumentElement.StyleChanged
DocumentElement.StylePropertyChanged
DocumentElement.ParentChanging
DocumentElement.ParentChanged
DocumentElement.PropertyValueChanged
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
AnnotationRangeStart.IsRangeEditable

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
AnnotationMarkerBase.SkipPositionBefore

Methods

CopyContentFromOverride(DocumentElement)

Declaration
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters
DocumentElement fromElement

Overrides
Inline.CopyContentFromOverride(DocumentElement)

CopyPropertiesFromOverride(DocumentElement)

Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
DocumentElement fromElement

Overrides
AnnotationMarkerBase.CopyPropertiesFromOverride(DocumentElement)

CreateNewElementInstance()

Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
DocumentElement

Overrides
DocumentElement.CreateNewElementInstance()

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.