ESRI.ArcGIS.ADF.IMS
Symbol Property
See Also  Example Send Feedback
ESRI.ArcGIS.ADF.IMS.Display.Renderer Namespace > SimpleRenderer Class : Symbol Property




Gets or sets the FeatureSymbol.

Syntax

Visual Basic (Declaration) 
Public Property Symbol As FeatureSymbol
Visual Basic (Usage)Copy Code
Dim instance As SimpleRenderer
Dim value As FeatureSymbol
 
instance.Symbol = value
 
value = instance.Symbol
C# 
public FeatureSymbol Symbol {get; set;}

Example

The following example retrieves an existing renderer and modifies its symbol. This assumes the renderer is a SimpleRenderer.
Visual BasicCopy Code
Dim layer As FeatureLayer = mapView.Layers.FindByName("Countries")
Dim simpleRend As SimpleRenderer = layer.Renderer
simpleRend.Symbol.Transparency = 0.3
C#Copy Code
FeatureLayer layer = mapView.Layers.FindByName("Countries");
SimpleRenderer simpleRend = layer.Renderer;
simpleRend.Symbol.Transparency = 0.3;

Remarks

In order to retrieve the Symbol for a SimpleRenderer, you must either retrieve map rendering information during MapService construction using InitializationParameters, or you must have previously assigned a new renderer with symbol to the layer. Otherwise the layer's renderer will be null (Nothing).

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.