SetSideDockingMargin Method
Description
Sets the margin between the client area's edge and a docking pane docked to the edge of the client area when side docking is enabled.
Syntax
Public Sub SetSideDockingMargin( _
ByVal Left As Long, _
ByVal Top As Long, _
ByVal Right As Long, _
ByVal Bottom As Long _
)
Parameters
- Left: Margin between the left edge of the client area and any docking panes that are docked to the left edge of the client area.
- Top: Margin between the top edge of the client area and any docking panes that are docked to the top edge of the client area.
- Right: Margin between the right edge of the client area and any docking panes that are docked to the right edge of the client area.
- Bottom: Margin between the bottom edge of the client area and any docking panes that are docked to the bottom edge of the client area.
Return Type
Returns True if all margins are accepted. Returns False if one or more of the margins are not possible.
Remarks
SetSideDockingMargin sets the margins between the client area's edge and a docking pane docked to the edge of the client area when side docking is enabled.
All margins are in pixels.
SideDocking must be enabled for SetSideDockingMargin to have any effect. When enabled, any pane that is dragged to an inside edge of the client area will attempt to "snap" to that inside edge of the client. The pane will "snap" to the inside edge of the client and will leave a margin equal to that specified by SetSideDockingMargin.

Use DockSidePane to dock panes to the inside edge of the client using code.
Example
DockingPaneManager.Options.SideDocking = True
DockingPaneManager.Options.SetSideDockingMargin 23, 23, 23, 23
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.