ESRI.ArcGIS.ADF.Web
GetTocLayer Method
See Also 
ESRI.ArcGIS.ADF.Web.Display.Graphics Namespace > GraphicsLayer Class : GetTocLayer Method




layer
Graphics layer for which to construct the TOC layer.
swatchInfo
Swatch information to use for symbolizing
Returns a table of contents (TOC) layer for this graphics layer.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetTocLayer( _
   ByVal layer As GraphicsLayer, _
   ByVal swatchInfo As SwatchInfo _
) As TocLayer
Visual Basic (Usage)Copy Code
Dim layer As GraphicsLayer
Dim swatchInfo As SwatchInfo
Dim value As TocLayer
 
value = GraphicsLayer.GetTocLayer(layer, swatchInfo)
C# 
public static TocLayer GetTocLayer( 
   GraphicsLayer layer,
   SwatchInfo swatchInfo
)

Parameters

layer
Graphics layer for which to construct the TOC layer.
swatchInfo
Swatch information to use for symbolizing

Return Value

A TOC layer.

Example

This method may be used to construct a TocLayer that may in turn be used to add an item for the graphics layer to a Table of Contents ( Toc) control that is associated with a Map.

See Also

© 2010 All Rights Reserved.