Back to Devexpress

TreeList.LayoutUpdated Event

windowsforms-devexpress-dot-xtratreelist-dot-treelist-912e7e2e.md

latest2.3 KB
Original Source

TreeList.LayoutUpdated Event

Fires after a Tree List’s layout has been changed.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public event EventHandler LayoutUpdated
vb
Public Event LayoutUpdated As EventHandler

Event Data

The LayoutUpdated event's data class is EventArgs.

Remarks

When changing the column width, node height, column headers position or performing other actions that affect the size and position of the Tree List’s elements, the Tree List’s layout changes. As a result the LayoutUpdated event is raised. This event is also raised by the TreeList.LayoutChanged method which forces the Tree List to recalculate all its graphical information.

Note the LayoutUpdated event fires each time the Tree List’s layout is restored as a result of a TreeList.RestoreLayoutFromRegistry, TreeList.RestoreLayoutFromStream or TreeList.RestoreLayoutFromXml method call.

Handle this event to perform actions in response to layout modifications. This can be useful for instance, when it needs to be determined if the Tree List’s layout has been changed by an end-user. If it was changed, it can be saved to an XML file when the application is closed.

See Also

LayoutChanged()

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace