Path size.
Inheritance: ObservableObject
Esempio n. 1
0
 /// <inheritdoc/>
 public override void ArcTo(XPoint point, XPathSize size, double rotationAngle = 0.0, bool isLargeArc = false, XSweepDirection sweepDirection = XSweepDirection.Clockwise, bool isStroked = true, bool isSmoothJoin = true)
 {
     var segment = XArcSegment.Create(
         point,
         size,
         rotationAngle,
         isLargeArc,
         sweepDirection,
         isStroked,
         isSmoothJoin);
     _currentFigure.Segments = _currentFigure.Segments.Add(segment);
 }
Esempio n. 2
0
        /// <inheritdoc/>
        public override void ArcTo(XPoint point, XPathSize size, double rotationAngle = 0.0, bool isLargeArc = false, XSweepDirection sweepDirection = XSweepDirection.Clockwise, bool isStroked = true, bool isSmoothJoin = true)
        {
            var segment = XArcSegment.Create(
                point,
                size,
                rotationAngle,
                isLargeArc,
                sweepDirection,
                isStroked,
                isSmoothJoin);

            _currentFigure.Segments = _currentFigure.Segments.Add(segment);
        }
Esempio n. 3
0
 /// <summary>
 /// Adds arc segment.
 /// </summary>
 /// <param name="point">The end point.</param>
 /// <param name="size">The arc size.</param>
 /// <param name="rotationAngle">The rotation angle.</param>
 /// <param name="isLargeArc">The is large flag.</param>
 /// <param name="sweepDirection">The sweep direction flag.</param>
 /// <param name="isStroked">The flag indicating whether shape is stroked.</param>
 /// <param name="isSmoothJoin">The flag indicating whether shape is smooth join.</param>
 public abstract void ArcTo(XPoint point, XPathSize size, double rotationAngle, bool isLargeArc = false, XSweepDirection sweepDirection = XSweepDirection.Clockwise, bool isStroked = true, bool isSmoothJoin = true);
Esempio n. 4
0
 public void ToString_Should_Return_Width_And_Height()
 {
     var target = new XPathSize() { Width = 50, Height = 30 };
     var actual = target.ToString();
     Assert.Equal("50,30", actual);
 }
Esempio n. 5
0
 /// <summary>
 /// Adds arc segment.
 /// </summary>
 /// <param name="point">The end point.</param>
 /// <param name="size">The arc size.</param>
 /// <param name="rotationAngle">The rotation angle.</param>
 /// <param name="isLargeArc">The is large flag.</param>
 /// <param name="sweepDirection">The sweep direction flag.</param>
 /// <param name="isStroked">The flag indicating whether shape is stroked.</param>
 /// <param name="isSmoothJoin">The flag indicating whether shape is smooth join.</param>
 public abstract void ArcTo(XPoint point, XPathSize size, double rotationAngle, bool isLargeArc = false, XSweepDirection sweepDirection = XSweepDirection.Clockwise, bool isStroked = true, bool isSmoothJoin = true);