ESRI.ArcGIS.ADF.IMS
RotateMethod Property
See Also  Example
ESRI.ArcGIS.ADF.IMS.Display.Symbol Namespace > TrueTypeMarkerSymbol Class : RotateMethod Property




Gets or sets the method for calculating orientation based on Angle or AngleField properties.

Syntax

Visual Basic (Declaration) 
Public Property RotateMethod As RotateMethod
Visual Basic (Usage)Copy Code
Dim instance As TrueTypeMarkerSymbol
Dim value As RotateMethod
 
instance.RotateMethod = value
 
value = instance.RotateMethod
C# 
public RotateMethod RotateMethod {get; set;}

Example

This example creates a new TrueTypeMarkerSymbol, with symbol rotated based on a field within the layer.
Visual BasicCopy Code
Dim symbol As New TrueTypeMarkerSymbol()

symbol.FontInfo = New FontInfo("ESRI Weather", 16, Drawing.Color.MidnightBlue, FontStyle.Regular)

' "%" corresponds to a weather flag character in ESRI Weather font

symbol.Character = "%"c

symbol.AngleField = "Angle"

symbol.RotateMethod = RotateMethod.Geographic



Dim simpleRenderer As New SimpleRenderer()

simpleRenderer.Symbol = symbol



Dim layer As FeatureLayer = mapView.Layers.FindLayerByName("Weather Stations")

layer.Renderer = simpleRenderer

C#Copy Code
TrueTypeMarkerSymbol symbol = new TrueTypeMarkerSymbol(); 

symbol.FontInfo = new FontInfo("ESRI Weather", 16, Drawing.Color.MidnightBlue, FontStyle.Regular); 

// "%" corresponds to a weather flag character in ESRI Weather font 

symbol.Character = "%"c; 

symbol.AngleField = "Angle"; 

symbol.RotateMethod = RotateMethod.Geographic; 

symbol.UseCentroid = true; 

  

SimpleRenderer simpleRenderer = =new SimpleRenderer(); 

simpleRenderer.Symbol = symbol; 

  

FeatureLayer layer = mapView.Layers.FindLayerByName("Weather Stations"); 

layer.Renderer = simpleRenderer; 

    

Remarks

Determines the relative zero starting point for angles specified with the Angle or AngleField properties.

Default is Mod_Arithmetic, which means that zero is assumed to be north, and that values increase in a counter-clockwise direction. Use a setting of Geographic to interpret angle values as increasing in a clockwise direction.

This property is ignored for ArcMap Server image services.

See Also

© 2010 All Rights Reserved.