ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMMarkerPlacementOnLine Class / RelativeTo Property
Example

In This Topic
    RelativeTo Property
    In This Topic
    Gets or sets the location on a line where a marker will be placed. The direction of the line is determined by the direction in which the line was digitized.
    Syntax
    Public Property RelativeTo As PlacementOnLineRelativeTo
    public PlacementOnLineRelativeTo RelativeTo {get; set;}
    Example
    How to construct a multilayer line symbol with an arrow head on the end
    {
          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)
    }
          };
      }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also