Back to Devexpress

LayoutControl.AddGroup(String) Method

windowsforms-devexpress-dot-xtralayout-dot-layoutcontrol-dot-addgroup-x28-system-dot-string-x29.md

latest2.0 KB
Original Source

LayoutControl.AddGroup(String) Method

Creates a new layout group with the default layout type and the specified caption, and adds it to the root group.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public LayoutControlGroup AddGroup(
    string text
)
vb
Public Function AddGroup(
    text As String
) As LayoutControlGroup

Parameters

NameTypeDescription
textString

A String value that specifies the group’s caption. This value is assigned to the BaseLayoutItem.Text property.

|

Returns

TypeDescription
LayoutControlGroup

The newly created group.

|

Remarks

This method calls the root group’s LayoutControlGroup.AddGroup method. For more information, refer to the description of the corresponding LayoutGroup.AddGroup method overload.

See Also

Root

AddGroup

LayoutControl Class

LayoutControl Members

DevExpress.XtraLayout Namespace