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 SpecializedDocumentElementCollection<TInheritor>

Inheritance
System.Object
SpecializedDocumentElementCollection<TInheritor>
BlockCollection
InlineCollection
ParagraphCollection
SectionCollection
TableCellCollection
TableRowCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinForms.Documents.Model
Assembly: Telerik.WinControls.RichTextEditor.dll

Syntax

public abstract class SpecializedDocumentElementCollection<TInheritor> : ICollection<TInheritor>, IEnumerable<TInheritor>, IList, ICollection, IEnumerable where TInheritor : DocumentElement
Type Parameters
TInheritor

Properties

Count

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

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

First

Declaration
public TInheritor First { get; }
Property Value
TInheritor

InnerCollection

Declaration
protected DocumentElementCollection InnerCollection { get; }
Property Value
DocumentElementCollection

IsReadOnly

Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean

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

Last

Declaration
public TInheritor Last { get; }
Property Value
TInheritor

Methods

Add(TInheritor)

Adds a DocumentElement to the collection.

Declaration
public void Add(TInheritor item)
Parameters
TInheritor item

The object to add to the System.Collections.Generic.ICollection<T>.

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

AddAfter(TInheritor, TInheritor)

Declaration
public void AddAfter(TInheritor item, TInheritor newItem)
Parameters
TInheritor item

TInheritor newItem

AddBefore(TInheritor, TInheritor)

Declaration
public void AddBefore(TInheritor item, TInheritor newItem)
Parameters
TInheritor item

TInheritor newItem

AddRange(IEnumerable<TInheritor>)

Declaration
public void AddRange(IEnumerable<TInheritor> range)
Parameters
System.Collections.Generic.IEnumerable<TInheritor> range

Clear()

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

Contains(TInheritor)

Declaration
public bool Contains(TInheritor item)
Parameters
TInheritor item

Returns
System.Boolean

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

CopyTo(TInheritor[], Int32)

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

System.Int32 arrayIndex

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

Detach(TInheritor)

Declaration
public bool Detach(TInheritor item)
Parameters
TInheritor item

Returns
System.Boolean

GetEnumerator()

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

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

OnCollectionChanged()

Called when the collection is changed. Raises CollectionChanged event.

Declaration
protected virtual void OnCollectionChanged()

OnElementAdded(DocumentElement)

Called when DocumentElement is added.

Declaration
protected virtual void OnElementAdded(DocumentElement element)
Parameters
DocumentElement element

The element.

Remove(TInheritor)

Declaration
public bool Remove(TInheritor item)
Parameters
TInheritor item

Returns
System.Boolean

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

ToArray()

Converts the collection to an array.

Declaration
public TInheritor[] ToArray()
Returns
TInheritor[]

An array of DocumentElements.

VerifyChildrenOverride(TInheritor)

Declaration
protected virtual void VerifyChildrenOverride(TInheritor item)
Parameters
TInheritor item

Events

CollectionChanged

Occurs when the collection is changed.

Declaration
public event EventHandler CollectionChanged
Event Type
System.EventHandler

ElementAdded

Occurs when a DocumentElement is added.

Declaration
public event EventHandler<ElementAddedEventArgs> ElementAdded
Event Type
System.EventHandler<ElementAddedEventArgs>

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

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

System.Int32 index

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

ICollection.Count

Declaration
int ICollection.Count { get; }
Returns
System.Int32

Implements
System.Collections.ICollection.Count

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.Contains(Object)

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

Returns
System.Boolean

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

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.IndexOf(Object)

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

Returns
System.Int32

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

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