New to Telerik UI for WPFStart a free 30-day trial

A visitor which encloses a standard action.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Type Parameters:

T

The data type.

Syntax:

C#
public sealed class DepthActionVisitor<T> : IDepthVisitor<T>

Inheritance: objectDepthActionVisitor<T>

Implements: IDepthVisitor<T>

Constructors

Initializes a new instance of the DepthActionVisitor<T> class.

C#
public DepthActionVisitor(Action<T, int> action)
Parameters:actionAction<T, int>

The action.

Properties

Gets a value indicating whether this instance has completed.

C#
public bool HasCompleted { get; }
Property Value:

true if this instance has completed; otherwise, false.

Implements: IDepthVisitor<T>.HasCompleted

Methods

Visits the specified object.

C#
public void Visit(T obj, int height)
Parameters:objT

The object.

heightint

The height.

Implements: IDepthVisitor<T>.Visit(T, int)