[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [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]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [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
    [Collapse]Layout Control
      Layout Control
      Layout Hierarchical Structure
      Converting a Regular Layout of Controls to an XtraLayoutControl
      Customizing a Layout In Code
      Using a LayoutControl in Inherited Forms
    [Expand]Data Layout Control
    [Expand]Layout Item
    [Expand]Layout Groups
    [Expand]Tabbed Group
    [Expand]Other Layout Elements
    [Expand]Customization Capabilities
    [Expand]Size and Alignment
     Flow Layout
     Table Layout
     Focus Management
    [Expand]Appearance and Look and Feel
    [Expand]Miscellaneous
    [Expand]Examples
    [Expand]Member Tables
   [Expand]Tabbed MDI Manager
    Tab Control
   [Expand]Wizard Control
    Workspace Manager
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [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]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Customizing a Layout In Code

The following methods allow you to create and modify a layout in code:

Member

Description

LayoutControlItem's constructor

LayoutControlGroup's constructor

TabbedControlGroup's constructor

Creates a new layout item/group/tabbed group. The created objects can then be added to another group (for instance, to the root group) via the LayoutGroup.Add and LayoutGroup.Move methods.

LayoutGroup.Add

Adds the specified item along the bottom or right edge of the current group.

LayoutControl.AddItem

Adds a new or an existing layout item to the root group.

LayoutControlGroup.AddItem

Adds a new or an existing layout item to the current group.

LayoutControl.AddGroup

Adds a new or an existing group to the root group.

LayoutControlGroup.AddGroup

Adds a new or an existing group to the current group.

LayoutControl.AddTabbedGroup

Adds a new or an existing tabbed group to the root group.

LayoutControlGroup.AddTabbedGroup

Adds a new or an existing tabbed group to the current group.

TabbedControlGroup.AddTabPage

Adds a new tab page to the current tabbed group.

BaseLayoutItem.Move

Moves the current layout item to a specific position within the Layout Control.

TabbedGroup.MoveTabPage

Moves the current tabbed group to a specific position within the Layout Control.

LayoutControl.HideItem

Hides the specified item into the Customization Form.

BaseLayoutItem.HideToCustomization

Hides the current item into the Customization Form.

BaseLayoutItem.RestoreFromCustomization

Restores the specified layout item from the Customization Form.

Expanded Task-Based Help

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