Item Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a section from the collection. In C# this property is the indexer for the SectionCollection class.
Syntax
public Section this[int number] { get; }Default Public ReadOnly Property Item(number As Integer) As SectionExamples
The following example works with sections in the current document by using SectionCollection.Item.
SectionCollection sectionCollection = textControl.Sections;
sectionCollection.Add(SectionBreakKind.BeginAtNewPage, -1);
Console.WriteLine($"Item: {sectionCollection[10]}");
Console.WriteLine("Section Collection is ready for use.");Dim sectionCollection As SectionCollection = textControl.Sections
sectionCollection.Add(SectionBreakKind.BeginAtNewPage, -1)
Console.WriteLine($"Item: {sectionCollection.Item(10)}")
Console.WriteLine("Section Collection is ready for use.")Limitations
Read only.