Skip to main content
A newer version of this page is available. .

PaddingInfo.Inflate(RectangleF, Single) Method

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

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v20.2.dll

NuGet Packages: DevExpress.Data, DevExpress.WindowsDesktop.Data

Declaration

public RectangleF Inflate(
    RectangleF rect,
    float dpi
)

Parameters

Name Type Description
rect RectangleF

A RectangleF value which specifies the rectangle to be inflated.

dpi Single

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

Returns

Type Description
RectangleF

A RectangleF value that represents the inflated rectangle.

Remarks

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

See Also