ESRI.ArcGIS.ADF.Web.UI.WebControls
GraphicsLayerContextMenu Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TaskResults Class : GraphicsLayerContextMenu Property




The context menu displayed with the user right-clicks on a layer (second-level) node in the TaskResults.

Syntax

Visual Basic (Declaration) 
<BrowsableAttribute(False)>
Public ReadOnly Property GraphicsLayerContextMenu As ContextMenu
Visual Basic (Usage)Copy Code
Dim instance As TaskResults
Dim value As ContextMenu
 
value = instance.GraphicsLayerContextMenu
C# 
[BrowsableAttribute(false)]
public ContextMenu GraphicsLayerContextMenu {get;}

Remarks

This context menu is used with the task results items in TaskResults. For example, a QueryAttributesTask typically outputs results that are added as a node to the TaskResults control. This top-level node may be expanded to view the layer and feature information in the results. If the user right-clicks on the second-level layer node, and the node represents a graphics layer, the GraphicsLayerContextMenu displays.

By default, the GraphicsLayerContextMenu has choices to zoom to selected features and to remove the layer. These items may be modified programmatically by accessing this property at runtime. On session startup, these items may be accessed at the PreRenderComplete stage. If modifying items during a callback, the CallbackResults would have to be set to replace the content of the context menu.

See Also

© 2010 All Rights Reserved.