ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMMarkerPlacementOnVertices Class / PlaceOnEndPoints Property
Example

In This Topic
    PlaceOnEndPoints Property
    In This Topic
    Gets or sets a value indicating whether a marker will be placed on the endpoints of the line.
    Syntax
    public bool PlaceOnEndPoints {get; set;}
    Public Property PlaceOnEndPoints As Boolean
    Example
    How to construct a multilayer line symbol with circle markers on the line ends
    //These methods must be called within the lambda passed to QueuedTask.Run
    var lineStrokeRed = SymbolFactory.Instance.ConstructStroke(ColorFactory.Instance.RedRGB, 4.0);
    var markerCircle = SymbolFactory.Instance.ConstructMarker(ColorFactory.Instance.RedRGB, 12, SimpleMarkerStyle.Circle);
    markerCircle.MarkerPlacement = new CIMMarkerPlacementOnVertices()
    {
      AngleToLine = true,
      PlaceOnEndPoints = true,
      Offset = 0
    };
    var lineSymbolWithCircles = new CIMLineSymbol()
    {
      SymbolLayers = new CIMSymbolLayer[2] { markerCircle, lineStrokeRed }
    };
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also