• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class SectionCollection

Provides ordered access to the sections in a document.

Inheritance
object
SectionCollection
Implements
IEnumerable<Section>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class SectionCollection : IEnumerable<Section>, IEnumerable

Properties

Count

Gets the number of sections in the collection.

Declaration
public int Count { get; }
Property Value
Type Description
int

this[int]

Gets the section at the specified zero-based index.

Declaration
public Section this[int index] { get; }
Parameters
Type Name Description
int index

The zero-based section index.

Property Value
Type Description
Section

The section at index.

Methods

GetEnumerator()

Returns an enumerator over sections in document order.

Declaration
public IEnumerator<Section> GetEnumerator()
Returns
Type Description
IEnumerator<Section>

An enumerator over the live collection.

Insert(int, Section)

Inserts a section at the specified zero-based index.

Declaration
public void Insert(int index, Section section)
Parameters
Type Name Description
int index

The zero-based insertion index.

Section section

The section to insert.

RemoveAt(int)

Removes the section at the specified zero-based index.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
int index

The zero-based index to remove.

Implements

IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX