Core2D.Shapes.XPath.Create C# (CSharp) Method

Create() public static method

Creates a new XPath instance.
public static Create ( string name, ShapeStyle style, XPathGeometry geometry, bool isStroked = true, bool isFilled = true ) : XPath
name string The shape name.
style Core2D.Style.ShapeStyle The shape style.
geometry Core2D.Path.XPathGeometry The path geometry.
isStroked bool The flag indicating whether shape is stroked.
isFilled bool The flag indicating whether shape is filled.
return XPath
        public static XPath Create(string name, ShapeStyle style, XPathGeometry geometry, bool isStroked = true, bool isFilled = true)
        {
            return new XPath()
            {
                Name = name,
                Style = style,
                IsStroked = isStroked,
                IsFilled = isFilled,
                Geometry = geometry
            };
        }
    }