Skip to main content

TabbedGroup.Accept(BaseVisitor) Method

Invokes the Visit method of the specified visitor for each item that belongs to the current layout tabbed group.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public override void Accept(
    BaseVisitor visitor
)

Parameters

Name Type Description
visitor DevExpress.XtraLayout.Utils.BaseVisitor

A DevExpress.XtraLayout.Utils.BaseVisitor class descendant.

Remarks

The Accept method provides recursive iteration through the items that belong to the current layout tabbed group and enables specific operation to be performed on each item.

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

  • Create a DevExpress.XtraLayout.Utils.BaseVisitor class descendant;
  • Override its Visit method to implement an operation to be performed on layout items;
  • Call the group’s Accept method with an instance of the created class as a parameter.

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

See Also