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

Represents a traverser which can traverse the hierarchical data structure of the data displayed by a RadGanttView.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class GanttViewTraverser : ITraverser<GanttViewDataItem>, IDisposable, IEnumerator, IEnumerable

Inheritance: objectGanttViewTraverser

Implements: IDisposableIEnumerableIEnumeratorITraverser<GanttViewDataItem>

Constructors

Initializes a new instance of the GanttViewTraverser class.

C#
public GanttViewTraverser(RadGanttViewElement owner)
Parameters:ownerRadGanttViewElement

The owner.

Properties

Gets the element in the collection at the current position of the enumerator.

C#
public GanttViewDataItem Current { get; }
Property Value:

The element in the collection at the current position of the enumerator.

Gets or sets the position.

C#
public object Position { get; set; }
Property Value:

The position.

Implements: ITraverser<GanttViewDataItem>.Position

Gets or sets a value indicating whether the traverser will go through an item's children no matter if it is expanded or not.

C#
public bool TraverseAllItems { get; set; }
Property Value:

true if traversing all items; otherwise, false.

Methods

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Returns an enumerator that iterates through a collection.

C#
public IEnumerator GetEnumerator()
Returns:

IEnumerator

An IEnumerator object that can be used to iterate through the collection.

Implements: IEnumerable.GetEnumerator()

Advances the enumerator to the next element of the collection.

C#
public bool MoveNext()
Returns:

bool

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Implements: IEnumerator.MoveNext()

Moves to the next item.

C#
public virtual bool MoveNextCore()
Returns:

bool

true if the move was successful; otherwise false

Moves to the previous.

C#
public bool MovePrevious()
Returns:

bool

Implements: ITraverser<GanttViewDataItem>.MovePrevious()

Moves to the previous item.

C#
public virtual bool MovePreviousCore()
Returns:

bool

true if the move was successfull; otherwise false

Moves to the specified item.

C#
public bool MoveTo(GanttViewDataItem item)
Parameters:itemGanttViewDataItem

The item.

Returns:

bool

Moves to the last item.

C#
public bool MoveToEnd()
Returns:

bool

Implements: ITraverser<GanttViewDataItem>.MoveToEnd()

Raises the event.

C#
protected bool OnTraversing()
Returns:

bool

Raises the event.

C#
protected virtual void OnTraversing(GanttViewTraversingEventArgs e)
Parameters:eGanttViewTraversingEventArgs

The GanttViewTraversingEventArgs instance containing the event data.

Sets the enumerator to its initial position, which is before the first element in the collection.

C#
public void Reset()

Implements: IEnumerator.Reset()

Events

Occurs when the traverser moves.

C#
public event GanttViewTraversingEventHandler Traversing