![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
RotateMethod Property | |
See Also Example Send Feedback |
ESRI.ArcGIS.ADF.IMS.Display.Symbol Namespace > TrueTypeMarkerSymbol Class : RotateMethod Property |
Visual Basic (Declaration) | |
---|---|
Public Property RotateMethod As RotateMethod |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As TrueTypeMarkerSymbol Dim value As RotateMethod instance.RotateMethod = value value = instance.RotateMethod |
C# | |
---|---|
public RotateMethod RotateMethod {get; set;} |
This example creates a new TrueTypeMarkerSymbol, with symbol rotated based on a field within the layer.
Visual Basic | ![]() |
---|---|
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# | ![]() |
---|---|
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; |
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.
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