Columns Property
Collapse the table of content
Expand the table of content

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
Available since 3.0
Return to top
Show:
© 2016 Microsoft