TX Text Control .NET for Windows Forms

Length Property

Property
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 characters in the table cell. If the table cell is merged, the property returns -1.

Syntax

public int Length { get; }

Examples

The following example creates a small report table and works with its structure by using TableCell.Length.

textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCell tableCell = table.Cells[2, 2];

textControl.Select(tableCell.Start, tableCell.Length);
Console.WriteLine("Table Cell is ready for use.");

Limitations

Read only.