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
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class StructureElementsCollection

Mutable list managing child StructureElement nodes of a structure tree, enforcing parent linkage on insert/remove.

Inheritance
System.Object
StructureElementsCollection
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.Windows.Documents.Fixed.Model
Assembly: Telerik.Windows.Documents.Fixed.dll

Syntax

public class StructureElementsCollection : IList<StructureElement>, ICollection<StructureElement>, IEnumerable<StructureElement>, IEnumerable

Properties

Count

Gets the current number of structure elements held in the collection.

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

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

IsReadOnly

Gets a value indicating whether the collection is read‑only (always false for this implementation).

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

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

Item[Int32]

Gets or sets the StructureElement at the given zero‑based index.

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

The index.

Property Value
StructureElement

The structure element at the specified index.

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

Methods

AddStructureElement(String, StructureTagType)

Creates, appends, and returns a new structure element with the provided custom tag mapped to the given standard type.

Declaration
public StructureElement AddStructureElement(string customTag, StructureTagType tag)
Parameters
System.String customTag

The custom tag to assign to the new structure element.

StructureTagType tag

The standard structure tag type mapped to the custom tag.

Returns
StructureElement

The newly created StructureElement.

AddStructureElement(StructureTagType)

Creates, appends, and returns a new StructureElement using the specified standard structure tag.

Declaration
public StructureElement AddStructureElement(StructureTagType tag)
Parameters
StructureTagType tag

The tag to associate with the structure element.

Returns
StructureElement

The newly created StructureElement.

Clear()

Removes all elements, clearing parent references from each before disposal.

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

Contains(StructureElement)

Determines whether the specified element instance is contained in the collection.

Declaration
public bool Contains(StructureElement item)
Parameters
StructureElement item

The structure element to locate in the collection.

Returns
System.Boolean

true if the structure element is found; otherwise, false.

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

CopyTo(StructureElement[], Int32)

Copies all elements to the target array starting at the provided destination index.

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

The array to copy elements to.

System.Int32 arrayIndex

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

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

GetEnumerator()

Returns an enumerator for iterating through the elements in order of insertion.

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

An enumerator for the collection.

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

IndexOf(StructureElement)

Gets the zero‑based index of the specified element instance, or -1 if not found.

Declaration
public int IndexOf(StructureElement item)
Parameters
StructureElement item

The structure element to locate in the collection.

Returns
System.Int32

The index of the structure element if found; otherwise, -1.

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

Insert(Int32, StructureElement)

Inserts the provided element at the given index, updating its parent reference.

Declaration
public void Insert(int index, StructureElement item)
Parameters
System.Int32 index

The zero-based index at which the structure element should be inserted.

StructureElement item

The structure element to insert.

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

Remove(StructureElement)

Removes the first matching element, nulling its parent reference if found.

Declaration
public bool Remove(StructureElement item)
Parameters
StructureElement item

The structure element to remove.

Returns
System.Boolean

true if the structure element was successfully removed; otherwise, false.

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

RemoveAt(Int32)

Removes the element at the specified index and clears its parent reference.

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

The zero-based index of the structure element to remove.

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

Explicit Interface Implementations

ICollection<StructureElement>.Add(StructureElement)

Declaration
void ICollection<StructureElement>.Add(StructureElement element)
Parameters
StructureElement element

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

IEnumerable.GetEnumerator()

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

Implements
System.Collections.IEnumerable.GetEnumerator()
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • 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.