Core2D.Path.Segments.XArcSegment.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            return string.Format(
                     "A{1}{0}{2}{0}{3}{0}{4}{0}{5}",
                     " ",
                     Size,
                     RotationAngle,
                     IsLargeArc ? "1" : "0",
                     SweepDirection == XSweepDirection.Clockwise ? "1" : "0",
                     Point);
        }
    }

Usage Example

Ejemplo n.º 1
0
        public void ToString_Should_Return_Path_Markup()
        {
            var target = new XArcSegment()
            {
                Point = new XPoint(),
                Size = new XPathSize() { Width = 10, Height = 20 },
                RotationAngle = 90,
                IsLargeArc = true,
                SweepDirection = XSweepDirection.Clockwise
            };

            var actual = target.ToString();

            Assert.Equal("A10,20 90 1 1 0,0", actual);
        }