Version

Name Property (WorksheetTableColumn)

Gets or sets the name of the column.
Syntax
'Declaration
 
Public Property Name As System.String
public System.string Name {get; set;}

Property Value

The unique name of the column within the owning WorksheetTable.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionFrom the setter if column was removed from the table.
Remarks

If the header row is visible in the WorksheetTable, the name of the column will be displayed in the cell of the column in the header row.

When the WorksheetTable is created, the column names will be taken from the cells in the header row. If the table does not contain a header row, the column names will be generated.

The column names are unique within the owning WorksheetTable. If, when the table is created, there are two or more columns with the same name, the second and subsequent duplicate column names will have a number appended to make them unique. If any cells in the header row have a non-string value, their value will be changed to a string (the current display text of the cell). If any cells in the header row have no value, they will be given a generated column name.

If the Name property is set to a null or empty string, a column name will be generated. If the value is set to a column name which already exists in the table, the column with the higher index will have a number appended to its name so all column names can stay unique.

Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub