Export (0) Print
Expand All

Table.Columns Property

Gets a TableColumnCollection object that contains the columns hosted by the table.

Namespace:  System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

member Columns : TableColumnCollection with get

Property Value

Type: System.Windows.Documents.TableColumnCollection
A TableColumnCollection object that contains the columns (represented by TableColumn objects) hosted by the table. Note that this number might not be the actual number of columns rendered in the table. It is the TableCell objects in a table that determine how many columns are actually rendered.
This property has no default value.

The TableColumn objects returned by this property can, in conjunction with the TableCell objects in the column, be used to define layout of columns but they do not determine the actual number of columns rendered. It is the TableCell objects in a table that determine how many columns are actually rendered. For example, if you define 3 columns but only have table cells for 2 columns, only 2 columns will be rendered.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft