ESRI.ArcGIS.ADF.IMS
SimpleMarkerSymbol Class
Members  Example  See Also 
ESRI.ArcGIS.ADF.IMS.Display.Symbol Namespace : SimpleMarkerSymbol Class




A MarkerSymbol used for displaying point features.

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class SimpleMarkerSymbol 
   Inherits MarkerSymbol
Visual Basic (Usage)Copy Code
Dim instance As SimpleMarkerSymbol
C# 
[SerializableAttribute()]
public class SimpleMarkerSymbol : MarkerSymbol 

Example

The following example replaces the current feature renderer with a newly created SimpleMarkerSymbol.
C#Copy Code
// Create a new marker symbol and set its properties 

SimpleMarkerSymbol simpleMarkerSymb = new SimpleMarkerSymbol(Drawing.Color.Fuchsia, 10, MarkerSymbolType.Triangle); 

simpleMarkerSymb.AllowLabelOverlap = true; 

simpleMarkerSymb.Antialiasing = false; 

simpleMarkerSymb.OutlineColor = Drawing.Color.Bisque; 

simpleMarkerSymb.ShadowColor = Drawing.Color.DarkGray; 

simpleMarkerSymb.Transparency = 30; 

  

// Retrieve an existing point layer 

FeatureLayer layer = mapView.Layers.FindByName("Cities"); 

GroupRenderer grpRend = layer.Renderer; 

  

// Create a new simple renderer to contain the symbol, and replace the existing feature renderer 

SimpleRenderer simpleRend = new (simpleMarkerSymb); 

grpRend.Renderers.RemoveAt(0); 

grpRend.Renderers.Add(simpleRend); 

    
Visual BasicCopy Code
' Create a new marker symbol and set its properties

Dim simpleMarkerSymb As New SimpleMarkerSymbol(Drawing.Color.Fuchsia, 10, MarkerSymbolType.Triangle)

simpleMarkerSymb.AllowLabelOverlap = True

simpleMarkerSymb.Antialiasing = False

simpleMarkerSymb.OutlineColor = Drawing.Color.Bisque

simpleMarkerSymb.ShadowColor = Drawing.Color.DarkGray

simpleMarkerSymb.Transparency = 30



' Retrieve an existing point layer

Dim layer As FeatureLayer = mapView.Layers.FindByName("Cities")

Dim grpRend As GroupRenderer = layer.Renderer



' Create a new simple renderer to contain the symbol, and replace the existing feature renderer

Dim simpleRend As New SimpleRenderer(simpleMarkerSymb)

grpRend.Renderers.RemoveAt(0)

grpRend.Renderers.Add(simpleRend)

Remarks

Draws point symbols in a simple manner (as a circle, square, etc.; see Type for available symbol types). For more complex point symbols, see also RasterMarkerSymbol, ShieldSymbol, and TrueTypeMarkerSymbol.

For ArcMap Server image services, valid only for acetate layers. ArcMap Server ignores several of the properties of this class. For details, see the topic for SIMPLEMARKERSYMBOL in the ArcIMS Help, at ArcXML Guide - Symbol elements - SIMPLEMARKERSYMBOL. The ArcIMS Help is also available online at ESRI).

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.ADF.IMS.Display.Symbol.Symbol
      ESRI.ArcGIS.ADF.IMS.Display.Symbol.FeatureSymbol
         ESRI.ArcGIS.ADF.IMS.Display.Symbol.MarkerSymbol
            ESRI.ArcGIS.ADF.IMS.Display.Symbol.SimpleMarkerSymbol

See Also

© 2010 All Rights Reserved.