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




A LineSymbol used for displaying line features.

Syntax

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

Example

This example replaces the existing symbol renderer for a rivers layer with a new SimpleLineSymbol, with dashed line and two pixels thick.
Visual BasicCopy Code
' Create a new line symbol and set its properties

Dim simpleLineSymb As New SimpleLineSymbol(Drawing.Color.PowderBlue, 2)

simpleLineSymb.AllowLabelOverlap = True

simpleLineSymb.Antialiasing = True

simpleLineSymb.CapType = CapType.Round

simpleLineSymb.JoinType = JoinType.Round

simpleLineSymb.Transparency = 0

simpleLineSymb.Type = LineType.Dash



' Retrieve an existing line layer's renderer

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

Dim renderer As SimpleRenderer = layer.Renderer



' Replace the renderer's symbol with the one we created

renderer.Symbol = simpleLineSymb

C#Copy Code
// Create a new line symbol and set its properties 

SimpleLineSymbol simpleLineSymb = new SimpleLineSymbol(Drawing.Color.PowderBlue, 2); 

simpleLineSymb.AllowLabelOverlap = true; 

simpleLineSymb.Antialiasing = true; 

simpleLineSymb.CapType = CapType.Round; 

simpleLineSymb.JoinType = JoinType.Round; 

simpleLineSymb.Transparency = 0; 

simpleLineSymb.Type = LineType.Dash; 

  

// Retrieve an existing line layer's renderer 

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

SimpleRenderer renderer = layer.Renderer; 

  

// Replace the renderer's symbol with the one we created 

renderer.Symbol = simpleLineSymb; 

    

Remarks

This is one of the two types of line symbols available, the other being HashLineSymbol. It displays lines with a simple appearance, with a style defined by Type.

This class is typically used to symbolize line features. It can also be used with polygon layers.

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 SIMPLELINESYMBOL in the ArcIMS Help, at ArcXML Guide - Symbol elements - SIMPLELINESYMBOL. 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.LineSymbol
            ESRI.ArcGIS.ADF.IMS.Display.Symbol.SimpleLineSymbol

See Also

© 2010 All Rights Reserved.