/// <summary> /// Creates a new <see cref="XPathGeometry"/> instance. /// </summary> /// <param name="figures">The figures collection.</param> /// <param name="fillRule">The fill rule.</param> /// <returns>The new instance of the <see cref="XPathGeometry"/> class.</returns> public static XPathGeometry Create(ImmutableArray<XPathFigure> figures, XFillRule fillRule) { return new XPathGeometry() { Figures = figures, FillRule = fillRule }; }
/// <summary> /// Creates a new <see cref="XPathGeometry"/> instance. /// </summary> /// <param name="figures">The figures collection.</param> /// <param name="fillRule">The fill rule.</param> /// <returns>The new instance of the <see cref="XPathGeometry"/> class.</returns> public static XPathGeometry Create(ImmutableArray <XPathFigure> figures, XFillRule fillRule) { return(new XPathGeometry() { Figures = figures, FillRule = fillRule }); }
/// <inheritdoc/> XPathGeometry IShapeFactory.Geometry(XFillRule fillRule) { return(XPathGeometry.Create( ImmutableArray.Create <XPathFigure>(), fillRule)); }
/// <summary> /// Creates a new instance of the XPathGeometry class. /// </summary> /// <param name="fillRule"></param> /// <returns></returns> public XPathGeometry Geometry(XFillRule fillRule = XFillRule.EvenOdd) { return(XPathGeometry.Create( new List <XPathFigure>(), fillRule)); }
/// <summary> /// Creates a new instance of the XPathGeometry class. /// </summary> /// <param name="fillRule"></param> /// <returns></returns> public XPathGeometry Geometry(XFillRule fillRule = XFillRule.EvenOdd) { return XPathGeometry.Create( new List<XPathFigure>(), fillRule); }
/// <inheritdoc/> XPathGeometry IShapeFactory.Geometry(XFillRule fillRule) { return XPathGeometry.Create( ImmutableArray.Create<XPathFigure>(), fillRule); }