Class
GanttViewTraverser

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:

cs-api-definition
public class GanttViewTraverser : ITraverser<GanttViewDataItem>, IDisposable, IEnumerator, IEnumerable

Inheritance: objectGanttViewTraverser

Implements: IDisposableIEnumerableIEnumeratorITraverser<GanttViewDataItem>

Constructors

GanttViewTraverser(RadGanttViewElement)

Initializes a new instance of the GanttViewTraverser class.

Declaration

cs-api-definition
public GanttViewTraverser(RadGanttViewElement owner)

Parameters

owner

RadGanttViewElement

The owner.

Properties

Current

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

Declaration

cs-api-definition
public GanttViewDataItem Current { get; }

Property Value

GanttViewDataItem

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

Position

Gets or sets the position.

Declaration

cs-api-definition
public object Position { get; set; }

Property Value

object

The position.

Implements ITraverser<GanttViewDataItem>.Position

TraverseAllItems

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

Declaration

cs-api-definition
public bool TraverseAllItems { get; set; }

Property Value

bool

true if traversing all items; otherwise, false.

Methods

Dispose()

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

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

GetEnumerator()

Returns an enumerator that iterates through a collection.

Declaration

cs-api-definition
public IEnumerator GetEnumerator()

Returns

IEnumerator

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

Implements IEnumerable.GetEnumerator()

MoveNext()

Advances the enumerator to the next element of the collection.

Declaration

cs-api-definition
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()

MoveNextCore()

Moves to the next item.

Declaration

cs-api-definition
public virtual bool MoveNextCore()

Returns

bool

true if the move was successful; otherwise false

MovePrevious()

Moves to the previous.

Declaration

cs-api-definition
public bool MovePrevious()

Returns

bool

Implements ITraverser<GanttViewDataItem>.MovePrevious()

MovePreviousCore()

Moves to the previous item.

Declaration

cs-api-definition
public virtual bool MovePreviousCore()

Returns

bool

true if the move was successfull; otherwise false

MoveTo(GanttViewDataItem)

Moves to the specified item.

Declaration

cs-api-definition
public bool MoveTo(GanttViewDataItem item)

Parameters

item

GanttViewDataItem

The item.

Returns

bool

MoveToEnd()

Moves to the last item.

Declaration

cs-api-definition
public bool MoveToEnd()

Returns

bool

Implements ITraverser<GanttViewDataItem>.MoveToEnd()

OnTraversing()

Raises the event.

Declaration

cs-api-definition
protected bool OnTraversing()

Returns

bool

OnTraversing(GanttViewTraversingEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnTraversing(GanttViewTraversingEventArgs e)

Parameters

e

GanttViewTraversingEventArgs

The GanttViewTraversingEventArgs instance containing the event data.

Reset()

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

Declaration

cs-api-definition
public void Reset()

Implements IEnumerator.Reset()

Events

Traversing

Occurs when the traverser moves.

Declaration

cs-api-definition
public event GanttViewTraversingEventHandler Traversing

Event Value

GanttViewTraversingEventHandler