HeaderPane
Main
Hide
Share Link
Print

GetNextShown Method, SftTree Object

Returns the index of the next visible item.

Deprecated - Provided for compatibility with earlier versions only - Use Items.FirstShown and Item.NextShown instead

Syntax

C#int NextItemIndex = object.GetNextShown(int ItemIndex);
VB.NETNextItemIndex = object.GetNextShown(ByVal ItemIndex As Integer) As Integer
C++long NextItemIndex = object->GetNextShown(long ItemIndex);
CHRESULT object->raw_GetNextShown(long ItemIndex, long* NextItemIndex);
VBNextItemIndex = object.GetNextShown(ByVal ItemIndex As Long) As Long

object

A SftTree object.

ItemIndex

The zero-based index of the item whose next item is to be retrieved. If -1 is specified, the index of the first visible item in the tree control is returned.

NextItemIndex

Returns the zero-based index of the next visible item given an item ItemIndex. If -1 is returned, if no item is found.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Items.FirstShown and Item.NextShown instead

The GetNextShown method returns the index of the next visible item.

Dependent items of a collapsed parent item are skipped using this method.

Use Items.FirstShown, Item.NextShown, Item.PrevShown, Items.LastShown to retrieve information about item visibility.

See Also SftTree Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.