ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMMarker Class / Rotation Property

In This Topic
    Rotation Property (CIMMarker)
    In This Topic
    Gets or sets the angle that the marker is rotated around the anchor point, in degrees.
    public double Rotation {get; set;}
    Public Property Rotation As Double
    How to construct a multilayer line symbol with an arrow head on the end
    //These methods must be called within the lambda passed to QueuedTask.Run
    var markerTriangle = SymbolFactory.Instance.ConstructMarker(ColorFactory.Instance.RedRGB, 12, SimpleMarkerStyle.Triangle);
    markerTriangle.Rotation = -90; // or -90
    markerTriangle.MarkerPlacement = new CIMMarkerPlacementOnLine() { AngleToLine = true, RelativeTo = PlacementOnLineRelativeTo.LineEnd };
    var lineSymbolWithArrow = new CIMLineSymbol()
      SymbolLayers = new CIMSymbolLayer[2] { markerTriangle,
                  SymbolFactory.Instance.ConstructStroke(ColorFactory.Instance.RedRGB, 2)

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also