ESRI.ArcGIS.ADF.IMS
Symbol Property
See Also  Example
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).

See Also

© 2010 All Rights Reserved.