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

Captures a traverser's group, item, and collection indices for saving or restoring its position.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PropertyGridTraverserState

Inheritance: objectPropertyGridTraverserState

Constructors

Captures the current group, item, and their indices.

C#
public PropertyGridTraverserState(PropertyGridGroupItem group, PropertyGridItemBase item, int index, int groupIndex)
Parameters:groupPropertyGridGroupItem

The current group, or null when ungrouped.

itemPropertyGridItemBase

The current item.

indexint

The saved item index; it may be -1 or not applicable when the current position is a group header.

groupIndexint

The saved group index; it may be stale or not applicable when the current position is ungrouped.

Properties

Gets the group captured by this state.

C#
public PropertyGridGroupItem Group { get; }

Gets the saved group index, which may be stale or not applicable when the captured position is ungrouped.

C#
public int GroupIndex { get; }

Gets the saved item index, which may be stale after collection changes, -1, or not applicable at a group header.

C#
public int Index { get; }

Gets the item captured by this state.

C#
public PropertyGridItemBase Item { get; }