Skip to main content

PaddingInfo.Deflate(RectangleF, Single) Method

Deflates the specified rectangle by the rectangle of the current padding with the specified dpi.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v24.2.dll

Declaration

public RectangleF Deflate(
    RectangleF rect,
    float dpi
)

Parameters

Name Type Description
rect RectangleF

A RectangleF value which specifies the rectangle to be deflated.

dpi Single

A Single value which specifies the dpi value to be applied to the left, top, right and bottom padding values before deflating.

Returns

Type Description
RectangleF

A RectangleF value that represents the deflated rectangle.

Remarks

The Deflate method adds the PaddingInfo.Left and PaddingInfo.Top property values to the left and top values of the specified rectangle, and subtracts the PaddingInfo.Right and PaddingInfo.Bottom property values from the right and bottom values of the specified rectangle.

See Also