Example #1
0
        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);
        }
Example #2
0
        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);
        }