Svg2Xaml.SvgCoordinate.Parse C# (CSharp) Method

Parse() public static method

public static Parse ( string value ) : SvgCoordinate
value string
return SvgCoordinate
        public static new SvgCoordinate Parse(string value)
        {
            SvgLength length = SvgLength.Parse(value);

              return new SvgCoordinate(length.Value, length.Unit);
        }

Usage Example

        //==========================================================================
        public SvgEllipseElement(SvgDocument document, SvgBaseElement parent, XElement ellipseElement)
            : base(document, parent, ellipseElement)
        {
            XAttribute cx_attribute = ellipseElement.Attribute("cx");

            if (cx_attribute != null)
            {
                CenterX = SvgCoordinate.Parse(cx_attribute.Value);
            }

            XAttribute cy_attribute = ellipseElement.Attribute("cy");

            if (cy_attribute != null)
            {
                CenterY = SvgCoordinate.Parse(cy_attribute.Value);
            }

            XAttribute rx_attribute = ellipseElement.Attribute("rx");

            if (rx_attribute != null)
            {
                RadiusX = SvgCoordinate.Parse(rx_attribute.Value);
            }

            XAttribute ry_attribute = ellipseElement.Attribute("ry");

            if (ry_attribute != null)
            {
                RadiusY = SvgCoordinate.Parse(ry_attribute.Value);
            }
        }
All Usage Examples Of Svg2Xaml.SvgCoordinate::Parse