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

Represent a position in the hierarchy row traverser

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class HierarchyRowTraverser.HierarchyRowTraverserPosition : IEquatable<HierarchyRowTraverser.HierarchyRowTraverserPosition>

Inheritance: objectHierarchyRowTraverser.HierarchyRowTraverserPosition

Implements: IEquatable<HierarchyRowTraverser.HierarchyRowTraverserPosition>

Constructors

Initializes a new instance of the HierarchyRowTraverser.HierarchyRowTraverserPosition class.

C#
public HierarchyRowTraverserPosition(GridViewRowInfo hierarchyRow, GridViewRowInfo current, int index)
Parameters:hierarchyRowGridViewRowInfo

The hierarchy row.

currentGridViewRowInfo

The current.

indexint

The index.

Properties

Gets the current.

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

The current.

Gets the hierarchy row.

C#
public GridViewRowInfo HierarchyRow { get; }
Property Value:

The hierarchy row.

Gets the index.

C#
public int Index { get; }
Property Value:

The index.

Methods

Returns whether the specified position is equal to the current one.

C#
public bool Equals(HierarchyRowTraverser.HierarchyRowTraverserPosition position)
Parameters:positionHierarchyRowTraverser.HierarchyRowTraverserPosition

The position.

Returns:

bool

Implements: IEquatable<HierarchyRowTraverser.HierarchyRowTraverserPosition>.Equals(HierarchyRowTraverser.HierarchyRowTraverserPosition)

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()