Пример #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
     };
 }
Пример #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
     });
 }
Пример #3
0
 /// <inheritdoc/>
 XPathGeometry IShapeFactory.Geometry(XFillRule fillRule)
 {
     return(XPathGeometry.Create(
                ImmutableArray.Create <XPathFigure>(),
                fillRule));
 }
Пример #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));
 }
Пример #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);
 }
Пример #6
0
 /// <inheritdoc/>
 XPathGeometry IShapeFactory.Geometry(XFillRule fillRule)
 {
     return XPathGeometry.Create(
         ImmutableArray.Create<XPathFigure>(),
         fillRule);
 }