Exemplo n.º 1
0
 /// <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
     };
 }
Exemplo n.º 2
0
 /// <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
     });
 }
Exemplo n.º 3
0
 /// <inheritdoc/>
 XPathGeometry IShapeFactory.Geometry(XFillRule fillRule)
 {
     return(XPathGeometry.Create(
                ImmutableArray.Create <XPathFigure>(),
                fillRule));
 }
Exemplo n.º 4
0
 /// <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));
 }
Exemplo n.º 5
0
 /// <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);
 }
Exemplo n.º 6
0
 /// <inheritdoc/>
 XPathGeometry IShapeFactory.Geometry(XFillRule fillRule)
 {
     return XPathGeometry.Create(
         ImmutableArray.Create<XPathFigure>(),
         fillRule);
 }