GetItem Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the Section with the current text input position from the collection.
Syntax
public Section GetItem();Public Function GetItem() As SectionExamples
The following example works with sections in the current document by using SectionCollection.get_Item.
SectionCollection sectionCollection = textControl.Sections;
sectionCollection.Add(SectionBreakKind.BeginAtNewPage, -1);
Section result = sectionCollection.GetItem();
result?.Select();Dim sectionCollection As SectionCollection = textControl.Sections
sectionCollection.Add(SectionBreakKind.BeginAtNewPage, -1)
Dim result As Section = sectionCollection.GetItem()
If result IsNot Nothing Then result.Select()