BrickStyle.DeflateBorderWidth(RectangleF, BorderSide, Single, Boolean) Method

Deflates the specified rectangle by the width of borders represented by this brick style, and optionally applies the current border style.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v20.2.dll

Declaration

public RectangleF DeflateBorderWidth(
    RectangleF rect,
    BorderSide sides,
    float dpi,
    bool applyBorderStyle
)
Public Function DeflateBorderWidth(
    rect As RectangleF,
    sides As BorderSide,
    dpi As Single,
    applyBorderStyle As Boolean
) As RectangleF

Parameters

Name Type Description
rect RectangleF

A RectangleF value which specifies the rectangle to be deflated.

sides BorderSide

One or more BorderSide enumeration values, specifying which sides of a brick have borders.

dpi Single

A Single value which specifies the dpi value to be applied to the width of borders before deflating.

applyBorderStyle Boolean

true to apply the current border style; otherwise, false. The current border style can be accessed via the BrickStyle.BorderStyle property.

Returns

Type Description
RectangleF

A RectangleF value that represents the deflated rectangle.

See Also