![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
Symbol Property | |
See Also Example Send Feedback |
ESRI.ArcGIS.ADF.IMS.Display.Renderer Namespace > SimpleRenderer Class : Symbol Property |
Visual Basic (Declaration) | |
---|---|
Public Property Symbol As FeatureSymbol |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As SimpleRenderer Dim value As FeatureSymbol instance.Symbol = value value = instance.Symbol |
C# | |
---|---|
public FeatureSymbol Symbol {get; set;} |
The following example retrieves an existing renderer and modifies its symbol. This assumes the renderer is a SimpleRenderer.
Visual Basic | ![]() |
---|---|
Dim layer As FeatureLayer = mapView.Layers.FindByName("Countries") Dim simpleRend As SimpleRenderer = layer.Renderer simpleRend.Symbol.Transparency = 0.3 |
C# | ![]() |
---|---|
FeatureLayer layer = mapView.Layers.FindByName("Countries");
SimpleRenderer simpleRend = layer.Renderer;
simpleRend.Symbol.Transparency = 0.3; |
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).
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