[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Collapse]Form Layout Managers
    Side Panel
   [Collapse]Layout and Data Layout Controls
    [Expand]Product Information
    [Expand]Getting Started
    [Expand]Layout Control
    [Expand]Data Layout Control
    [Expand]Layout Items
    [Collapse]Layout Groups
      Layout Group's Settings
      Layout Group's Contents
      Creating Layout Groups
    [Expand]Tabbed Groups
    [Expand]Other Layout Elements
    [Expand]Design-Time and Runtime Customization
    [Expand]Size and Alignment
     Flow Layout
     Table Layout
     Focus Management
    [Expand]Appearance and Look and Feel
    [Expand]Member Tables
   [Expand]Tabbed MDI Manager
    Tab Control
   [Expand]Wizard Control
    Workspace Manager
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Layout Group's Contents

A layout group is a container of regular layout items and other groups. The child items are arranged within a group next to each other and the group's client area is occupied by the child items in its entirety (there is no space that is not occupied by the child items except for the group's border and caption). To insert an empty space to a group Empty Space Items objects are used.

A layout group consists of the caption area, border and client area that displays child layout items:

A group's layout can be customized by dragging layout items to, from and within the group. At design time this functionality is always enabled. At runtime, the group's customization is only enabled in customization mode. To prevent the group's layout from being modified in customization mode you can set the LayoutItemContainer.AllowCustomizeChildren property to false. Additionally, it's possible to prevent the customization mode from being activated via the LayoutControl.AllowCustomization property.

To access a group's child layout items in code you can use the indexer (LayoutGroup.Item). This allows you to iterate through the immediate children. Note that a child item can represent another group that can have its own children. To get the number of immediate child layout items use the LayoutGroup.Count property.

The following methods can be used to customize a group in code.

Method Description
LayoutGroup.Add Adds a layout item to a group.
BaseLayoutItem.Move Moves the specified layout item to another position.
LayoutControlGroup.AddTabbedGroup Adds a tabbed group to a group.

In specific instances it's necessary to identify a group's element that is located at a specific point. To do this, use the LayoutControl.CalcHitInfo method. Please refer to the Hit Information topic for more details.

Expanded See Also

Is this topic helpful?​​​​​​​