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




A LineSymbol used for displaying line features.

Object Model

SimpleLineSymbol Class

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).

Requirements

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

See Also

© 2011 All Rights Reserved.