An instance of the Section
public sealed class SectionCollection: ICollection, IEnumerablePublic NotInheritable Class SectionCollection
Implements ICollection
Implements IEnumerable Introduced: 14.0.
The following example shows how to add a new section and get the actual section number.
textControl1.Sections.Add(TXTextControl.SectionBreakKind.BeginAtNewPage);
Console.WriteLine("Section " + textControl1.Sections.GetItem().Number.ToString()
+ " of " + textControl1.Sections.Count.ToString());TextControl1.Sections.Add(TXTextControl.SectionBreakKind.BeginAtNewPage)
Console.WriteLine("Section " + TextControl1.Sections.GetItem().Number.ToString()
+ " of " + TextControl1.Sections.Count.ToString())| Method | Description |
|---|---|
| Add | Adds a new section to a document. |
| Copy |
Copies the elements of the collection to an array, starting at a particular index. |
| Get |
Returns an enumerator that can be used to iterate through the collection. |
| Get |
Gets the Section with the current text input position from the collection. |
| Property | Description |
|---|---|
| Count | Gets the number of elements contained in the collection. |
| Item | Gets a section from the collection. |