Back to Devexpress

LayoutControl.GroupExpandChanging Event

windowsforms-devexpress-dot-xtralayout-dot-layoutcontrol-0c19fa99.md

latest2.4 KB
Original Source

LayoutControl.GroupExpandChanging Event

Fires when a layout group is about to be expanded or collapsed.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public event LayoutGroupCancelEventHandler GroupExpandChanging
vb
<DXCategory("Behavior")>
Public Event GroupExpandChanging As LayoutGroupCancelEventHandler

Event Data

The GroupExpandChanging event's data class is LayoutGroupCancelEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets whether to cancel the current operation.
GroupGets the group currently being processed. Inherited from LayoutGroupEventArgs.

Remarks

The GroupExpandChanging event is raised when a Layout Groups‘s expanded state is about to be changed. This occurs when an end-user attempts to expand/collapse the group or the value of its LayoutGroup.Expanded property is being changed in code.

The processed layout group is identified by the event’s Group parameter. The Cancel parameter controls whether the operation is allowed. To prevent the layout group from being expanded/collapsed, set the Cancel parameter to true.

See Also

GroupExpandChanged

LayoutControl Class

LayoutControl Members

DevExpress.XtraLayout Namespace