Method SplitVertical
SplitVertical(Control?, Control?, int)
Initializes the left and right panes of the SplitterPanel. The child controls are shown if they are currently hidden.
public virtual bool SplitVertical(Control? window1, Control? window2, int sashPosition = 0)
Parameters
window1
ControlThe left pane.
window2
ControlThe right pane.
sashPosition
intThe initial position of the sash. If this value is positive, it specifies the size of the left pane. If it is negative, it is absolute value gives the size of the right pane. Specify 0 (default value) to choose the default position (half of the total window width).
Returns
- bool
true if successful, false otherwise (the control was already split).
Remarks
Call it if you want to initially view two panes. It can also be called at any time, but the application should check that the control is not currently split using IsSplit.