Table of Contents

Method SplitHorizontal

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

SplitHorizontal(Control?, Control?, int)

Initializes the top and bottom panes of the SplitterPanel. The child controls are shown if they are currently hidden.

public virtual bool SplitHorizontal(Control? window1, Control? window2, int sashPosition = 0)

Parameters

window1 Control

The top pane.

window2 Control

The bottom pane.

sashPosition int

The initial position of the sash. If this value is positive, it specifies the size of the upper pane. If it is negative, its absolute value gives the size of the lower pane. Specify 0 (default) to choose the default position (half of the total control height).

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.