TX Text Control .NET for WPF

Length Property

Property|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 number of characters in the section. The section break character is not included.

Syntax

public int Length { get; }

Examples

The following example works with the first section of the current document by using Section.Length.

Section section = textControl.Sections[1];

textControl.Select(section.Start, section.Length);
Console.WriteLine("Section is ready for use.");

Limitations

Read only.