TX Text Control .NET for WPF

Count Property

Property|Introduced in 10.1
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 elements contained in the collection.

Syntax

public int Count { get; }

Examples

The following example works with lines in the current document by using LineCollection.Count.

LineCollection lineCollection = textControl.Lines;
textControl.Text = "Quarterly results\nRevenue increased by 12%.";

Console.WriteLine($"Count: {lineCollection.Count}");
Console.WriteLine("Line Collection is ready for use.");

Limitations

Read only.