/// <summary> /// Sets the size of the shape. /// </summary> /// <param name="shape">The shape.</param> /// <param name="width">The width of the shape.</param> /// <param name="height">The height of the shape.</param> internal static void SetShapeSize(XShape shape, int width, int height) { if (shape != null) { var size = new Size(width, height); shape.setSize(size); } }