|
| ESRI.ArcGIS.ADF.IMS | |
| Symbol Property | |
| See Also Example | |
| ESRI.ArcGIS.ADF.IMS.Display.Renderer Namespace > SimpleRenderer Class : Symbol Property |
| Visual Basic (Declaration) | |
|---|---|
Public Property Symbol As FeatureSymbol | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| 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 | Copy Code |
|---|---|
Dim layer As FeatureLayer = mapView.Layers.FindByName("Countries") | |
| C# | Copy Code |
|---|---|
FeatureLayer layer = mapView.Layers.FindByName("Countries"); | |
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).