ESRI.ArcGIS.ADF.Web
GetTocLayer Method
See Also  Send Feedback
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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.