System.Drawing.Rectangle.Ceiling C# (CSharp) Method

Ceiling() public static method

Converts a RectangleF to a Rectangle by performing a ceiling operation on all the coordinates.
public static Ceiling ( RectangleF value ) : Rectangle
value RectangleF
return Rectangle
        public static Rectangle Ceiling(RectangleF value) =>
            new Rectangle(
                (int)Math.Ceiling(value.X),
                (int)Math.Ceiling(value.Y),
                (int)Math.Ceiling(value.Width),
                (int)Math.Ceiling(value.Height));

Same methods

Rectangle::Ceiling ( System value ) : System.Drawing.Rectangle