![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
GraphicsLayerContextMenu Property | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TaskResults Class : GraphicsLayerContextMenu Property |
Visual Basic (Declaration) | |
---|---|
<BrowsableAttribute(False)> Public ReadOnly Property GraphicsLayerContextMenu As ContextMenu |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As TaskResults Dim value As ContextMenu value = instance.GraphicsLayerContextMenu |
C# | |
---|---|
[BrowsableAttribute(false)] public ContextMenu GraphicsLayerContextMenu {get;} |
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.
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