/// <summary> /// /// </summary> /// <param name="point"></param> /// <param name="size"></param> /// <param name="rotationAngle"></param> /// <param name="isLargeArc"></param> /// <param name="sweepDirection"></param> /// <param name="isStroked"></param> /// <param name="isSmoothJoin"></param> public void ArcTo( XPoint point, XPathSize size, double rotationAngle, bool isLargeArc = false, XSweepDirection sweepDirection = XSweepDirection.Clockwise, bool isStroked = true, bool isSmoothJoin = true) { var segment = XArcSegment.Create( point, size, rotationAngle, isLargeArc, sweepDirection, isStroked, isSmoothJoin); _figure.Segments.Add(segment); }
/// <summary> /// /// </summary> /// <param name="point"></param> /// <param name="size"></param> /// <param name="rotationAngle"></param> /// <param name="isLargeArc"></param> /// <param name="sweepDirection"></param> /// <param name="isStroked"></param> /// <param name="isSmoothJoin"></param> /// <returns></returns> public static XArcSegment Create( XPoint point, XPathSize size, double rotationAngle, bool isLargeArc, XSweepDirection sweepDirection, bool isStroked, bool isSmoothJoin) { return new XArcSegment() { Point = point, Size = size, RotationAngle = rotationAngle, IsLargeArc = isLargeArc, SweepDirection = sweepDirection, IsStroked = isStroked, IsSmoothJoin = isSmoothJoin }; }
/// <summary> /// /// </summary> /// <param name="point"></param> /// <param name="size"></param> /// <param name="rotationAngle"></param> /// <param name="isLargeArc"></param> /// <param name="sweepDirection"></param> /// <param name="isStroked"></param> /// <param name="isSmoothJoin"></param> /// <returns></returns> public static XArcSegment Create( XPoint point, XPathSize size, double rotationAngle, bool isLargeArc, XSweepDirection sweepDirection, bool isStroked, bool isSmoothJoin) { return(new XArcSegment() { Point = point, Size = size, RotationAngle = rotationAngle, IsLargeArc = isLargeArc, SweepDirection = sweepDirection, IsStroked = isStroked, IsSmoothJoin = isSmoothJoin }); }