ESRI.ArcGIS.ADF.Web.UI.WebControls
AddLegend Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > GraphicsLayerNode Class : AddLegend Method




taskResults
TaskResults control that the graphics layer node is associated with.
Adds a legend entry to the TaskResults node for the graphics layer.

Syntax

Visual Basic (Declaration) 
Public Overrides Sub AddLegend( _
   ByVal taskResults As TaskResults _
) 
Visual Basic (Usage)Copy Code
Dim instance As GraphicsLayerNode
Dim taskResults As TaskResults
 
instance.AddLegend(taskResults)
C# 
public override void AddLegend( 
   TaskResults taskResults
)

Parameters

taskResults
TaskResults control that the graphics layer node is associated with.

Remarks

This method may be used to display a legend for the graphics layer to the user. It generates a table-of-contents type legend node, with name and color swatch, for the graphics layer that the node contains. It then adds the legend node to the task results node.

See Also

© 2010 All Rights Reserved.