GetItem Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
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()