Removes a RowDefinition from a RowDefinitionCollection at the specified index position.
Public Sub RemoveAt ( _
index As Integer _
The position within the collection at which the RowDefinition is removed.
RowDefinitionCollection uses a zero-based indexing system.
The following example demonstrates how to use the RemoveAt method to remove a RowDefinition to a RowDefinitionCollection at a specific index position.
Private Sub removeRow(ByVal sender As Object, ByVal e As RoutedEventArgs)
If (grid1.RowDefinitions.Count <= 0) Then
tp1.Text = "No More Rows to Remove!"
To view the complete sample, see How to: Manipulate Columns and Rows by Using ColumnDefinitionsCollections and RowDefinitionsCollections.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.