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 DocumentElementCollection

Inheritance
System.Object
DocumentElementCollection
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 class DocumentElementCollection : ICollection<DocumentElement>, IEnumerable<DocumentElement>, IEnumerable

Constructors

DocumentElementCollection(DocumentElement)

Initializes a new instance of the DocumentElementCollection class.

Declaration
public DocumentElementCollection(DocumentElement owner)
Parameters
DocumentElement owner

The owner.

Properties

Count

Gets the number of elements contained in the System.Collections.Generic.ICollection<T>.

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

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

First

Gets the first LayoutBox inside the collection.

Declaration
public LayoutBox First { get; }
Property Value
LayoutBox

The first.

IsEmpty

Gets a value indicating whether this instance is empty.

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

true if this instance is empty; otherwise, false.

IsReadOnly

Gets a value indicating whether the System.Collections.Generic.ICollection<T> is read-only.

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

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

Methods

Add(DocumentElement)

Adds an item to the collection.

Declaration
public void Add(DocumentElement item)
Parameters
DocumentElement item

The object to add to the collection.

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

AddAfter(DocumentElement, DocumentElement)

Adds an item after another one into the collection.

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

The object after which another object should be added.

DocumentElement newItem

The object to add to the collection.

AddBefore(DocumentElement, DocumentElement)

Adds an item before another one into the collection.

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

The object before which another object should be added.

DocumentElement newItem

The object to add to the collection.

Clear()

Removes all items from the collection.

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

Contains(DocumentElement)

Determines whether the collection contains a specific object.

Declaration
public bool Contains(DocumentElement item)
Parameters
DocumentElement item

The object to locate in the collection.

Returns
System.Boolean

true if the object is found in the collection; otherwise, false.

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

CopyTo(DocumentElement[], Int32)

Copies the elements of the System.Collections.Generic.ICollection<T> to an System.Array, starting at a particular System.Array index.

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

The one-dimensional System.Array that is the destination of the elements copied from the System.Collections.Generic.ICollection<T>. The System.Array must have zero-based indexing.

System.Int32 arrayIndex

The zero-based index in array at which copying begins.

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

Detach(DocumentElement)

Removes an elements from its Parent.

Declaration
public bool Detach(DocumentElement item)
Parameters
DocumentElement item

The object to detach from the collection.

Returns
System.Boolean

GetEnumerator()

Returns an enumerator that iterates through the collection.

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

An enumerator that can be used to iterate through the collection.

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

Remove(DocumentElement)

Removes a specific object from the collection.

Declaration
public bool Remove(DocumentElement item)
Parameters
DocumentElement item

The object to remove from the collection.

Returns
System.Boolean

true if the item has been successfully removed from the collection; otherwise, false.

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

Explicit Interface Implementations

IEnumerable.GetEnumerator()

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

Implements
System.Collections.IEnumerable.GetEnumerator()

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.