method Grid.IndentSelection ([Backward as Variant])
Changes the parent of selected items, making them shallower if true or deeper if false in the hierarchy.

TypeDescription
Backward as Variant A boolean expression that specifies the direction of indentation for the IndentSelection method: forward or backward. If the parameter is omitted, the method defaults to indenting forward. A deeper value of 'true' indicates backward indentation, while 'false' indicates forward indentation.
The IndentSelection(backward) method adjusts the hierarchy of selected items by changing their parent. The backward parameter specifies whether the indentation moves the items backward (shallower) or forward (deeper) in the hierarchy. When called, it moves the selected items one level deeper in the hierarchy by setting their parent to the item above them (this is useful for structuring data in a tree-like format, such as outlining or hierarchical lists). The ItemParent property gets the parent of the item, while SetParent method changes the item's parent at runtime. The ItemPosition property specifies indicates the item's position in the children list.