public static PointCollection GetPoints(ElementBase element) { return element is ElementBaseShape ? Normalize(element.GetRectangle().TopLeft, ((ElementBaseShape)element).Points, element.BorderThickness) : element is ElementBaseRectangle ? Normalize(element.GetRectangle(), element.BorderThickness) : new PointCollection(); }
public static PointCollection GetRealPoints(ElementBase element) { if (element is ElementBaseShape) return ((ElementBaseShape)element).Points; else if (element is ElementBaseRectangle) return GetPoints(element.GetRectangle()); return new PointCollection(); }