Version

Name Property (WorksheetTableColumn)

Gets or sets the name of the column.
Syntax
public 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: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also