CSReportPaint.cGlobals.newRectangleF C# (CSharp) Méthode

newRectangleF() public static méthode

public static newRectangleF ( System.Single left, System.Single top, System.Single right, System.Single bottom ) : RectangleF
left System.Single
top System.Single
right System.Single
bottom System.Single
Résultat System.Drawing.RectangleF
        public static RectangleF newRectangleF(Single left, Single top, Single right, Single bottom)
        {
            if (left < 0) left = 0;
            if (top < 0) top = 0;
            if (right < left) right = left;
            if (bottom < top) bottom = top;

            return new RectangleF(left, top, right-left, bottom-top);
        }