Back to Devexpress

LayoutGroup.Parent Property

windowsforms-devexpress-dot-xtralayout-dot-layoutgroup-33f1b6e3.md

latest2.2 KB
Original Source

LayoutGroup.Parent Property

Gets or sets the group that owns the current group.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public override LayoutGroup Parent { get; set; }
vb
<Browsable(False)>
Public Overrides Property Parent As LayoutGroup

Property Value

TypeDescription
LayoutGroup

A LayoutGroup or its descendant that owns the current group.

|

Remarks

Layout groups (except for the root group) can be displayed within other groups. The Parent property returns the parent group. For the root group the null value is returned.

If the current group is a tab within a tabbed group (LayoutGroup.ParentTabbedGroup), the Parent method returns this tabbed group’s parent.

If a new value is assigned to the Parent property the layout group will be removed from its current group and added to the new group. If null is assigned to the Parent property the group 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 or group use the BaseLayoutItem.Owner property.

See Also

Owner

LayoutGroup Class

LayoutGroup Members

DevExpress.XtraLayout Namespace