Back to Devexpress

LayoutControlGroup.AddItem() Method

windowsforms-devexpress-dot-xtralayout-dot-layoutcontrolgroup.md

latest3.3 KB
Original Source

LayoutControlGroup.AddItem() Method

Creates a new layout item with the default layout type and adds it to the current group.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public LayoutControlItem AddItem()
vb
Public Function AddItem As LayoutControlItem

Returns

TypeDescription
LayoutControlItem

The newly created item.

|

Remarks

This method overrides the base LayoutGroup.AddItem method to create a LayoutControlItem object. For more information, refer to the corresponding LayoutGroup.AddItem method overload.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddItem() method.

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.

winforms-dashboard-custom-properties/CS/WinForms-Dashboard-Custom-Properties/Modules/DashboardDescriptionModule.cs#L46

csharp
layoutControl.Name = "layoutControl1";
LayoutControlItem memoEditLayoutItem = layoutControl.Root.AddItem();
memoEditLayoutItem.TextLocation = Locations.Top;

winforms-dashboard-custom-properties/VB/WinForms-Dashboard-Custom-Properties/Modules/DashboardDescriptionModule.vb#L46

vb
layoutControl.Name = "layoutControl1"
Dim memoEditLayoutItem As LayoutControlItem = layoutControl.Root.AddItem()
memoEditLayoutItem.TextLocation = Locations.Top

See Also

AddGroup

AddTabbedGroup

Remove(BaseLayoutItem)

Move

LayoutControlGroup Class

LayoutControlGroup Members

DevExpress.XtraLayout Namespace