TX Text Control .NET for Windows Forms

Count Property

Property|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.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 includes the count value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Count: {conditionalInstructionCollection.Count}");
Console.WriteLine("Conditional Instruction Collection is ready for use.");

Limitations

Read only.

Remarks

If the TextControl.IsFormFieldValidationEnabled property is set to false, the property return -1.