Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutGroup.Accept(VisitDelegate<BaseLayoutItem>) Method

Invokes the specified delegate for each item that belongs to the current layout group.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v24.2.dll

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public override void Accept(
    VisitDelegate<BaseLayoutItem> visit
)

#Parameters

Name Type Description
visit DevExpress.Xpf.Layout.Core.VisitDelegate<BaseLayoutItem>

A DevExpress.Xpf.Layout.Core.VisitDelegate delegate that will be invoked for the group’s items.

#Remarks

The Accept method lets you recursively iterate through the layout items that belong to the current layout group and perform a specific operation on the items.

To iterate through the items of a specific layout item group, do the following:

  • Create a method with the signature matching the VisitDelegate delegate;
  • Call the group’s Accept method, and pass the delegate to the method as a parameter.

The specified method will be invoked for the current group first, and then recursively for each child item within the group.

See Also