/// <summary> /// Constructor /// </summary> /// <param name="figures">A collection of figures</param> /// <param name="fillRule">The fill rule (OddEven or NonZero)</param> /// <param name="transform">A transformation to apply to the input</param> public PathGeometry(IEnumerable <PathFigure> figures, FillRule fillRule, Transform transform) { Transform = transform; if (ValidateEnums.IsFillRuleValid(fillRule)) { FillRule = fillRule; if (figures != null) { foreach (PathFigure item in figures) { Figures.Add(item); } } else { throw new ArgumentNullException("figures"); } SetDirty(); } }