GrapeCity MultiRow Windows Forms Documentation
InsertSplit Method
Example 


A System.Int32 value that indicates the location of the inserted split line.
One of the System.Windows.Forms.Orientation values that indicates the orientation of the inserted split line.
Inserts the horizontal or vertical split line at the specified location.
Syntax
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
Public Sub InsertSplit( _
   ByVal location As Integer, _
   ByVal orientation As Orientation _
) 
Dim instance As GcMultiRow
Dim location As Integer
Dim orientation As Orientation
 
instance.InsertSplit(location, orientation)
[EditorBrowsable(EditorBrowsableState.Advanced)]
public void InsertSplit( 
   int location,
   Orientation orientation
)

Parameters

location
A System.Int32 value that indicates the location of the inserted split line.
orientation
One of the System.Windows.Forms.Orientation values that indicates the orientation of the inserted split line.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException

The location is equal to or less than the minimum available location of the split line.

-or-

The location is equal to or greater than the maximum available location of the split line.

Example
The following code example shows how to use this method to add a split line in a specific position. This code example is part of a larger example provided for the SplitMode property.
void addViewportInSpecificPositionButton_Click(object sender, EventArgs e)
        {
            this.gcMultiRow1.InsertSplit(150, Orientation.Horizontal);
        }
Private Sub addViewportInSpecificPositionButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles addViewportInSpecificPositionButton.Click
        Me.gcMultiRow1.InsertSplit(150, Orientation.Horizontal)
    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
RemoveSplit Method

 

 


Copyright © GrapeCity, inc. All rights reserved.