skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    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 NormalizedSnapshotSpanCollection

Represents a normalized snapshot span collection. NOTE: A read-only collection of TextSnapshotSpan objects, all from the same snapshot.

Inheritance
System.Object
NormalizedSnapshotSpanCollection
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinForms.SyntaxEditor.Core.Text
Assembly: Telerik.WinControls.SyntaxEditor.dll

Syntax

public class NormalizedSnapshotSpanCollection : IList<TextSnapshotSpan>, ICollection<TextSnapshotSpan>, IEnumerable<TextSnapshotSpan>, IList, ICollection, IEnumerable

Constructors

NormalizedSnapshotSpanCollection()

Initializes a new instance of the NormalizedSnapshotSpanCollection class.

Declaration
public NormalizedSnapshotSpanCollection()

NormalizedSnapshotSpanCollection(IEnumerable<TextSnapshotSpan>)

Initializes a new instance of the NormalizedSnapshotSpanCollection class.

Declaration
public NormalizedSnapshotSpanCollection(IEnumerable<TextSnapshotSpan> snapshotSpans)
Parameters
System.Collections.Generic.IEnumerable<TextSnapshotSpan> snapshotSpans

NormalizedSnapshotSpanCollection(TextSnapshot, IEnumerable<Span>)

Initializes a new instance of the NormalizedSnapshotSpanCollection class.

Declaration
public NormalizedSnapshotSpanCollection(TextSnapshot snapshot, IEnumerable<Span> spans)
Parameters
TextSnapshot snapshot

System.Collections.Generic.IEnumerable<Span> spans

NormalizedSnapshotSpanCollection(TextSnapshotSpan)

Initializes a new instance of the NormalizedSnapshotSpanCollection class.

Declaration
public NormalizedSnapshotSpanCollection(TextSnapshotSpan span)
Parameters
TextSnapshotSpan span

Fields

Empty

Empty instance.

Declaration
public static readonly NormalizedSnapshotSpanCollection Empty
Field Value
NormalizedSnapshotSpanCollection

Properties

Count

Gets the count of the spans.

Declaration
public int Count { get; }
Property Value
System.Int32

Implements
System.Collections.Generic.ICollection<T>.Count
System.Collections.ICollection.Count

Item[Int32]

Gets or sets an index-based snapshot from the collection.

Declaration
public TextSnapshotSpan this[int index] { get; set; }
Parameters
System.Int32 index

Property Value
TextSnapshotSpan

Implements
System.Collections.Generic.IList<T>.Item[System.Int32]

Methods

Contains(Object)

Declaration
public bool Contains(object value)
Parameters
System.Object value

Returns
System.Boolean

Implements
System.Collections.IList.Contains(System.Object)

Contains(TextSnapshotSpan)

Declaration
public bool Contains(TextSnapshotSpan item)
Parameters
TextSnapshotSpan item

Returns
System.Boolean

Implements
System.Collections.Generic.ICollection<T>.Contains(T)

CopyTo(Array, Int32)

Copies this instance into an array.

Declaration
public void CopyTo(Array array, int index)
Parameters
System.Array array

System.Int32 index

Implements
System.Collections.ICollection.CopyTo(System.Array, System.Int32)

CopyTo(TextSnapshotSpan[], Int32)

Copies this instance into a TextSnapshotSpan array.

Declaration
public void CopyTo(TextSnapshotSpan[] array, int arrayIndex)
Parameters
TextSnapshotSpan[] array

System.Int32 arrayIndex

Implements
System.Collections.Generic.ICollection<T>.CopyTo(T[], System.Int32)

Difference(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Gets the difference between two NormalizedSnapshotSpanCollection instances.

Declaration
public static NormalizedSnapshotSpanCollection Difference(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection left

NormalizedSnapshotSpanCollection right

Returns
NormalizedSnapshotSpanCollection

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Overrides
System.Object.Equals(System.Object)

GetEnumerator()

Gets the enumerator.

Declaration
public IEnumerator<TextSnapshotSpan> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<TextSnapshotSpan>

Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()

IndexOf(Object)

Declaration
public int IndexOf(object value)
Parameters
System.Object value

Returns
System.Int32

Implements
System.Collections.IList.IndexOf(System.Object)

IndexOf(TextSnapshotSpan)

Declaration
public int IndexOf(TextSnapshotSpan item)
Parameters
TextSnapshotSpan item

Returns
System.Int32

Implements
System.Collections.Generic.IList<T>.IndexOf(T)

Intersection(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Gets the intersection instance of two NormalizedSnapshotSpanCollection instances.

Declaration
public static NormalizedSnapshotSpanCollection Intersection(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection left

NormalizedSnapshotSpanCollection right

Returns
NormalizedSnapshotSpanCollection

IntersectsWith(NormalizedSnapshotSpanCollection)

Checks if this instance intersects with other NormalizedSnapshotSpanCollection instance.

Declaration
public bool IntersectsWith(NormalizedSnapshotSpanCollection set)
Parameters
NormalizedSnapshotSpanCollection set

Returns
System.Boolean

Overlap(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Overlaps two instances of NormalizedSnapshotSpanCollection class.

Declaration
public static NormalizedSnapshotSpanCollection Overlap(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection left

NormalizedSnapshotSpanCollection right

Returns
NormalizedSnapshotSpanCollection

OverlapsWith(NormalizedSnapshotSpanCollection)

Checks if this instance overlaps with other NormalizedSnapshotSpanCollection instance.

Declaration
public bool OverlapsWith(NormalizedSnapshotSpanCollection set)
Parameters
NormalizedSnapshotSpanCollection set

Returns
System.Boolean

ToString()

Declaration
public override string ToString()
Returns
System.String

Overrides
System.Object.ToString()

Union(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Unites two instances of NormalizedSnapshotSpanCollection class.

Declaration
public static NormalizedSnapshotSpanCollection Union(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection left

NormalizedSnapshotSpanCollection right

Returns
NormalizedSnapshotSpanCollection

Operators

Equality(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Declaration
public static bool operator ==(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection left

NormalizedSnapshotSpanCollection right

Returns
System.Boolean

Inequality(NormalizedSnapshotSpanCollection, NormalizedSnapshotSpanCollection)

Declaration
public static bool operator !=(NormalizedSnapshotSpanCollection left, NormalizedSnapshotSpanCollection right)
Parameters
NormalizedSnapshotSpanCollection left

NormalizedSnapshotSpanCollection right

Returns
System.Boolean

Explicit Interface Implementations

ICollection<TextSnapshotSpan>.Add(TextSnapshotSpan)

Declaration
void ICollection<TextSnapshotSpan>.Add(TextSnapshotSpan item)
Parameters
TextSnapshotSpan item

Implements
System.Collections.Generic.ICollection<T>.Add(T)

ICollection<TextSnapshotSpan>.Clear()

Declaration
void ICollection<TextSnapshotSpan>.Clear()
Implements
System.Collections.Generic.ICollection<T>.Clear()

ICollection<TextSnapshotSpan>.IsReadOnly

Declaration
bool ICollection<TextSnapshotSpan>.IsReadOnly { get; }
Returns
System.Boolean

Implements
System.Collections.Generic.ICollection<T>.IsReadOnly

ICollection<TextSnapshotSpan>.Remove(TextSnapshotSpan)

Declaration
bool ICollection<TextSnapshotSpan>.Remove(TextSnapshotSpan item)
Parameters
TextSnapshotSpan item

Returns
System.Boolean

Implements
System.Collections.Generic.ICollection<T>.Remove(T)

IList<TextSnapshotSpan>.Insert(Int32, TextSnapshotSpan)

Declaration
void IList<TextSnapshotSpan>.Insert(int index, TextSnapshotSpan item)
Parameters
System.Int32 index

TextSnapshotSpan item

Implements
System.Collections.Generic.IList<T>.Insert(System.Int32, T)

IList<TextSnapshotSpan>.RemoveAt(Int32)

Declaration
void IList<TextSnapshotSpan>.RemoveAt(int index)
Parameters
System.Int32 index

Implements
System.Collections.Generic.IList<T>.RemoveAt(System.Int32)

ICollection.IsSynchronized

Declaration
bool ICollection.IsSynchronized { get; }
Returns
System.Boolean

Implements
System.Collections.ICollection.IsSynchronized

ICollection.SyncRoot

Declaration
object ICollection.SyncRoot { get; }
Returns
System.Object

Implements
System.Collections.ICollection.SyncRoot

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator

Implements
System.Collections.IEnumerable.GetEnumerator()

IList.Add(Object)

Declaration
int IList.Add(object value)
Parameters
System.Object value

Returns
System.Int32

Implements
System.Collections.IList.Add(System.Object)

IList.Clear()

Declaration
void IList.Clear()
Implements
System.Collections.IList.Clear()

IList.get_Item(Int32)

Declaration
object IList.get_Item(int index)
Parameters
System.Int32 index

Returns
System.Object

Implements
System.Collections.IList.get_Item(System.Int32)

IList.Insert(Int32, Object)

Declaration
void IList.Insert(int index, object value)
Parameters
System.Int32 index

System.Object value

Implements
System.Collections.IList.Insert(System.Int32, System.Object)

IList.IsFixedSize

Declaration
bool IList.IsFixedSize { get; }
Returns
System.Boolean

Implements
System.Collections.IList.IsFixedSize

IList.IsReadOnly

Declaration
bool IList.IsReadOnly { get; }
Returns
System.Boolean

Implements
System.Collections.IList.IsReadOnly

IList.Item[Int32]

Declaration
object IList.this[] { get; set; }
Parameters
System.Int32 index

Returns
System.Object

Implements
System.Collections.IList.Item[System.Int32]

IList.Remove(Object)

Declaration
void IList.Remove(object value)
Parameters
System.Object value

Implements
System.Collections.IList.Remove(System.Object)

IList.RemoveAt(Int32)

Declaration
void IList.RemoveAt(int index)
Parameters
System.Int32 index

Implements
System.Collections.IList.RemoveAt(System.Int32)

IList.set_Item(Int32, Object)

Declaration
void IList.set_Item(int index, object value)
Parameters
System.Int32 index

System.Object value

Implements
System.Collections.IList.set_Item(System.Int32, System.Object)

Extension Methods

CommonExtensions.AddRange<T>(ICollection<T>, IEnumerable<T>)
CommonExtensions.ContainsAny<T>(IEnumerable<T>, IEnumerable<T>)
CommonExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
CommonExtensions.RemoveLast<T>(IList<T>)
CommonExtensions.EnsureListCountAtLeast<T>(IList<T>, Int32, Func<T>)
CommonExtensions.EnsureListCount<T>(IList<T>, Int32, Func<T>)
CommonExtensions.Clone<T>(IEnumerable<T>)
ExtensionMethodsEditor.CastCovariant<TFrom, TTo>(IEnumerable<TFrom>)
SvgExtentions.Traverse<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • 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.