ESRI.ArcGIS.ADF.IMS
Renderers Property
See Also  Example
ESRI.ArcGIS.ADF.IMS.Display.Renderer Namespace > GroupRenderer Class : Renderers Property




Gets the Renderers associated with this GroupRenderer.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Renderers As RendererCollection
Visual Basic (Usage)Copy Code
Dim instance As GroupRenderer
Dim value As RendererCollection
 
value = instance.Renderers
C# 
public RendererCollection Renderers {get;}

Example

The following example retrieves an existing GroupRenderer from a map layer, retrieves a renderer within the GroupRenderer and modifies a property of the symbol for that renderer.
Visual BasicCopy Code
Dim layer As FeatureLayer = mapView.Layers.FindByName("Countries")

Dim gRend As GroupRenderer = layer.Renderer

Dim simpleRend As SimpleRenderer = gRend.Renderers(0)

simpleRend.Symbol.Transparency = 0.3

C#Copy Code
FeatureLayer layer = mapView.Layers.FindByName("Countries"); 

GroupRenderer gRend = layer.Renderer; 

SimpleRenderer simpleRend = gRend.Renderers(0); 

simpleRend.Symbol.Transparency = 0.3; 

    

See Also

© 2010 All Rights Reserved.