Back to Devexpress

LayoutAllowEventArgs Class

corelibraries-devexpress-dot-utils-b25b759c.md

latest3.6 KB
Original Source

LayoutAllowEventArgs Class

Provides data for events raised when upgrading a control’s layout, allowing you to cancel the upgrade (e.g. BaseView.BeforeLoadLayout, BarManager.BeforeLoadLayout, etc.).

Namespace : DevExpress.Utils

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public class LayoutAllowEventArgs :
    LayoutUpgradeEventArgs
vb
Public Class LayoutAllowEventArgs
    Inherits LayoutUpgradeEventArgs

LayoutAllowEventArgs is the data class for the following events:

Show 14 events

LibraryRelated API Members
WinForms ControlsBarManager.BeforeLoadLayout
BaseView.BeforeLoadLayout
BaseView.BeforeLoadLayout
DockManager.BeforeLoadLayout
LayoutControl.BeforeLoadLayout
NavBarControl.BeforeLoadLayout
PivotGridControl.BeforeLoadLayout
RibbonControl.BeforeLoadLayout
SchedulerControl.BeforeLoadLayout
TileControl.BeforeLoadLayout
ToolbarFormControl.BeforeLoadLayout
TreeList.BeforeLoadLayout
VGridControlBase.BeforeLoadLayout
ASP.NET Web Forms ControlsASPxPivotGrid.BeforeLoadLayout

Remarks

The BeforeLoadLayout event occurs before a layout is restored from storage (a stream, XML file or the system registry), allowing you to prevent the layout from being applied. To cancel the layout application, set the LayoutAllowEventArgs.Allow property to false.

To obtain the textual representation of the previous layout version, use the LayoutUpgradeEventArgs.PreviousVersion property.

Note

LayoutAllowEventArgs objects are automatically created, initialized and passed to the BeforeLoadLayout event handlers.

Inheritance

Object EventArgs LayoutUpgradeEventArgs LayoutAllowEventArgs

See Also

LayoutAllowEventArgs Members

DevExpress.Utils Namespace