TX Text Control .NET for WPF

GetItem Method

Method|Introduced in 14.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets the Section with the current text input position from the collection.

Syntax

public Section GetItem();

Examples

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();