TX Text Control .NET for Windows Forms

Name Property

Property|Introduced in 17.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the cell's name. Each table cell can have a name, which can be used to store any string data associated with the cell.

Syntax

public string Name { get; set; }

Examples

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

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

tableCell.Name = "TableCell1";
tableCell.Select();