### Divider Position Get

To get the divider position of a SplitPane as defined using the B4J Visual Designer, use
SplitPane.DividerPositions(DividerIndex)
Example
The SplitPane node defined in the MainForm layout:
Private SplitPane_Main As SplitPane
Two layouts added to the MainForm:
MainForm.RootPane.LoadLayout("Main") 'Main.bjl
SplitPane_Main.LoadLayout("PaneLeft") 'PaneLeft.bjl
SplitPane_Main.LoadLayout("PaneRight") 'PaneRight.bjl
Get the divider position of the SplitPane called SplitPane_Main:
SplitPane_Main.DividerPositions(0)
The index is 0 for the first splitpane.
Note
To set the position use:
SplitPane_Main.DividerPositions = Array As Double(SplitPane1Index, SplitPane2Index, ...)
The index between 0 and 1
For the previous example to set at 80% to the right in the main form:
SplitPane_Main.DividerPositions = Array As Double(0.8)

Changed: 2018-05-06 17:09, Category: SplitPane, File: T6C253M1812.htm, ID: 1812