Table of Contents

Method SplitHorizontalDip

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

SplitHorizontalDip(Control?, Control?, double)

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

public virtual bool SplitHorizontalDip(Control? window1, Control? window2, double sashPosition = 0)

Parameters

window1 Control

The top pane.

window2 Control

The bottom pane.

sashPosition double

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.