BaseLayoutItem.Parent Property
Gets or sets the group that owns the current item.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
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.