ColumnDefinitionCollection.Clear Method ()
Clears the content of the ColumnDefinitionCollection.
Assembly: PresentationFramework (in PresentationFramework.dll)
The following example demonstrates how to use the ColumnDefinitionCollection.method to clear the content of a
Private Sub clearCol(ByVal sender As Object, ByVal e As RoutedEventArgs) grid1.ColumnDefinitions.Clear() End Sub
To view the complete sample, see How to: Manipulate Columns and Rows by Using ColumnDefinitionsCollections and RowDefinitionsCollections.
Available since 3.0