TX Text Control .NET Server

Length Property

Property|Introduced in 15.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets the number of characters in the paragraph including the paragraph end character.

Syntax

public int Length { get; }

Examples

The following example examines the first paragraph in a short document by using Paragraph.Length.

textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Paragraph paragraph = textControl.Paragraphs[1];

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

Limitations

Read only.