ESRI.ArcGIS.ADF.IMS
ShowColorMapInLegend Property
See Also 
ESRI.ArcGIS.ADF.IMS.Data Namespace > ImageDataset Class : ShowColorMapInLegend Property




Gets or sets a property that determines whether to show the color map in the legend.

Syntax

Visual Basic (Declaration) 
Public Property ShowColorMapInLegend As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ImageDataset
Dim value As Boolean
 
instance.ShowColorMapInLegend = value
 
value = instance.ShowColorMapInLegend
C# 
public bool ShowColorMapInLegend {get; set;}

Remarks

For an image layer, you have the option to include or not include the pixel values in the legend using ShowColorMapInLegend. The following rules apply:

  • When an image has no colormap and RASTER_RENDERER is not used in the map configuration file, only the image name is displayed in the legend.
  • When an image has a colormap and RASTER_RENDERER is not used, the colormap values are displayed in the legend. If you do not want the colormap to display in the legend, set ShowColorMapInLegend to False. Image formats that support colormaps are ArcSDE raster, GRID, BIL, and BSQ.
  • When an image has a colormap and RASTER_RENDERER is also used, the values from RASTER_RENDERER take precedence, and these values are displayed in the legend. If you do not want the RASTER_RENDERER values to display in the legend, set ShowColorMapInLegend to False.
  • When RASTER_RENDERER is used and there is no colormap, the RASTER_RENDERER values are displayed in the legend. If you do not want the RASTER_RENDERER values to display in the legend, set ShowColorMapInLegend to False.

See Also

© 2010 All Rights Reserved.