Version

GetVisibleIndexOf(Int32,Boolean) Method

Gets the visible index of the item at the specified index. If the item hasn't been allocated yet then it assumes it's visible.
Syntax
'Declaration
 
Public Overloads Function GetVisibleIndexOf( _
   ByVal itemIndex As Integer, _
   ByVal ignoreItemHiddenState As Boolean _
) As Integer
public int GetVisibleIndexOf( 
   int itemIndex,
   bool ignoreItemHiddenState
)

Parameters

itemIndex
Index of the item in the sparse array.
ignoreItemHiddenState
If false and the item is hidden, returns -1. Otherwise returns the visible index as if it were visible.

Return Value

Visible index.
Remarks

This method is typically used when the item at a specific index hasn't been allocated yet and one needs to calculate its visible index.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also