Gets the index of the specified level in this CategoricalScale.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Function GetLevelIndex ( _
	level As Object _
) As Integer
C#
public int GetLevelIndex (
	Object level
)
C++
public:
int GetLevelIndex (
	Object^ level
)

Parameters

level (System.Object)
An Object containing the requested level.

Return Value

The zero-based index of the level in the factor, or -1 if the level was not found.

Remarks

For CategoricalScale objects, this method is equivalent to the Map(Object[]()) method. The level parameter must always be an actual level.

For derived classes, the Map(Object[]()) method may be used to map other objects or values to levels.