Class SectionCollection
Provides ordered access to the sections in a document.
Inherited Members
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 |
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. |