Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ColumnDefinitionCollection.Add Method

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

Public Sub Add ( _
	value As ColumnDefinition _


Type: System.Windows.Controls.ColumnDefinition

Identifies the ColumnDefinition to add to the collection.


ICollection(Of T).Add(T)

The following example demonstrates how to use the Add method to add a ColumnDefinition to a ColumnDefinitionCollection.

Private Sub addCol(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Dim colDef1 As New ColumnDefinition
End Sub

To view the complete sample, see How to: Manipulate Columns and Rows by Using ColumnDefinitionsCollections and RowDefinitionsCollections.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft