A LineSymbol used for displaying line features.              
            
Object Model
            
Syntax
            
            
            
            
Example
                  This example replaces the existing symbol renderer for a rivers layer with a new                  SimpleLineSymbol, with dashed line and two pixels thick.                   
             
| Visual Basic |  Copy 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
            
            
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