New to Telerik UI for WinForms? Start a free 30-day trial

Represents the group traverser.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

C#
public class PivotGridGroupTraverser : ITraverser<PivotGroupNode>, IDisposable, IEnumerator, IEnumerable

Inheritance: objectPivotGridGroupTraverser

Implements: IDisposableIEnumerableIEnumeratorITraverser<PivotGroupNode>

Constructors

Initializes a new instance of the PivotGridGroupTraverser class.

C#
public PivotGridGroupTraverser(PivotGroupNode root)
Parameters:rootPivotGroupNode

The root.

Properties

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

C#
public PivotGroupNode 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<PivotGroupNode>.Position

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.

Exceptions: InvalidOperationException

The collection was modified after the enumerator was created.

Implements: IEnumerator.MoveNext()

Moves to previous.

C#
public bool MovePrevious()
Returns:

bool

Implements: ITraverser<PivotGroupNode>.MovePrevious()

This operation is not implemented; calling it throws NotImplementedException.

C#
public bool MoveToEnd()
Returns:

bool

Exceptions: NotImplementedException

The operation is not implemented.

Implements: ITraverser<PivotGroupNode>.MoveToEnd()

Raises ItemsNavigating for the current node and reports whether traversal should skip it.

C#
protected virtual bool OnItemsNavigating(PivotGroupNode current)
Parameters:currentPivotGroupNode

The group node currently being traversed.

Returns:

bool

true to omit current and continue navigating; otherwise, false to include it.

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

C#
public void Reset()
Exceptions: InvalidOperationException

The collection was modified after the enumerator was created.

Implements: IEnumerator.Reset()

Events

Occurs when traversal reaches a group node and before it is returned. Set SkipItem to omit the node.

C#
public event ItemsNavigatingEventHandler<PivotGroupNode> ItemsNavigating