GrapeCity MultiRow Windows Forms Documentation
RemoveSplit Method
Example 


The index of the split line.
One of the System.Windows.Forms.Orientation values that indicates the orientation of the removed split line.
Removes the horizontal or vertical split line at the specified location.
Syntax
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
Public Sub RemoveSplit( _
   ByVal indexOfSplitLine As Integer, _
   ByVal orientation As Orientation _
) 
Dim instance As GcMultiRow
Dim indexOfSplitLine As Integer
Dim orientation As Orientation
 
instance.RemoveSplit(indexOfSplitLine, orientation)
[EditorBrowsable(EditorBrowsableState.Advanced)]
public void RemoveSplit( 
   int indexOfSplitLine,
   Orientation orientation
)

Parameters

indexOfSplitLine
The index of the split line.
orientation
One of the System.Windows.Forms.Orientation values that indicates the orientation of the removed split line.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionThe indexOfSplitLine is less than 0 or greater than the number of split lines in the specified orientation minus 1.
Example
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
Requirements

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

See Also

Reference

GcMultiRow Class
GcMultiRow Members
AddViewport Method
InsertSplit Method

 

 


Copyright © GrapeCity, inc. All rights reserved.