public static T SetMarkerControlPointEndings <T>(this T marker, PlacementEndings endings) where T : CIMMarker { if (marker.MarkerPlacement is CIMMarkerPlacementAlongLine placement) { placement.ControlPointPlacement = endings; } else { throw IncompatibleMarkerPlacement(); } return(marker); }
public static T SetMarkerEndings <T>(this T marker, PlacementEndings endings, double customOffset = 0.0) where T : CIMMarker { if (marker.MarkerPlacement is CIMMarkerPlacementAlongLine placement) { placement.Endings = endings; placement.CustomEndingOffset = customOffset; } else { throw IncompatibleMarkerPlacement(); } return(marker); }