Removes the horizontal or vertical split line at the specified location.
The following code example shows how to use this method to remove a split line. This code example is part of a larger example provided for the
SplitMode property.
void removeViewportButton_Click(object sender, EventArgs e)
{
if (this.gcMultiRow1.GetVerticalViewportCount() > 1)
{
this.gcMultiRow1.RemoveSplit(0, Orientation.Horizontal);
}
else
{
MessageBox.Show("There is no horizontal split line.");
}
}
Private Sub removeViewportButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles removeViewportButton.Click
If Me.gcMultiRow1.GetVerticalViewportCount() > 1 Then
Me.gcMultiRow1.RemoveSplit(0, Orientation.Horizontal)
Else
MessageBox.Show("There is no horizontal split line.")
End If
End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2