Splitter Item
- 2 minutes to read
The splitter item allows you to resize adjacent layout elements.
A parent group‘s layout affects the item’s orientation: groups whose items are arranged horizontally display vertical splitters; otherwise splitters are displayed horizontally.
Create Layout Splitter Item
Double-click the Layout Control to invoke the customization form and follow the steps below:
Click the “Add Auxiliary Item” button.
Select “Add Splitter Item” in the context menu.
Drag the item to the Layout Tree View pane.
The layout splitter’s API:
Visibility | An item’s Visible property. |
Position | An item’s Index, VisibleIndex, AlignHorz, AlignVert, AlignmentConstraint, and Offsets properties. A parent group’s LayoutDirection and UseIndent properties. |
Appearance | An item’s LayoutLookAndFeel and CaptionOptions properties. A parent group’s LayoutLookAndFeelException property. The layout control’s LayoutLookAndFeel property. |
Behavior | An item’s SizeOptions.SizableHorz, SizeOptions.SizableVert, AllowCloseOnClick, AllowRemove, and Enabled properties. An item’s OnCanResize event. A parent group’s Locked property. The layout control’s OptionsItem.SizableHorz and OptionsItem.SizableVert properties. |
Size | An item’s SizeOptions.Height, SizeOptions.Width, SizeOptions.MaxHeight, and SizeOptions.MaxWidth properties. |
Contains commonly used customization options. | |
HitTest Information | For splitter items, the layout control’s GetHitTest function returns a TdxLayoutSplitterHitTest object when the customization mode is disabled. In customization mode, the function returns a TdxLayoutBasicItemHitTest object for these items. |