BaseLayoutItem.Parent Property
Gets or sets the group that owns the current item.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
LayoutGroup | A LayoutGroup or its descendant that owns the current item. |
Remarks
Layout items are displayed within layout item groups. The Parent property returns the layout group that owns the current item. For the root group this property returns null.
If a new value is assigned to the Parent property the layout item will be removed from its current group and added to the new group. If null is assigned to the Parent property the item is removed from its parent by calling the LayoutGroup.Remove method. See this topic for more information.
To get the LayoutControl that owns the layout item use the BaseLayoutItem.Owner property.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Parent property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.