Returns the ordinal number of a layer by its name.


Namespace: AspMap.Web
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

Visual Basic (Declaration)
Public Function GetLayerIndex( _ 
   ByVal layerName As String _ 
) As Integer
C#
public int GetLayerIndex(
   string layerName
)
C++
public:
 int GetLayerIndex(
   String layerName
) sealed 
J#
public int GetLayerIndex(
   string layerName
)
JScript
public  function GetLayerIndex(
   layerName : String
) : int

Parameters

layerName
The name of a layer.

Return Value

Returns the ordinal number of a layer or -1 if the layer is not found.

See Also