Table of Contents

TTMSFNCMargins Class

Stores left, top, right, and bottom inset values as floating-point singles, used to define padding or margin around a rectangle.

API unit family: TMSFNCTypes Inherits from: TPersistent

Syntax

TTMSFNCMargins = class(TPersistent)

Properties

Name Description
Bottom Bottom margin value in pixels.
Left Left margin value in pixels.
Rect The four margin values expressed as a TRectF, where Left/Top/Right/Bottom map to the corresponding margin sides.
Right Right margin value in pixels.
Top Top margin value in pixels.

Methods

Name Description
Empty Returns True when all four margin sides are zero.
PaddingRect Returns a copy of rectangle R shrunk by these margin values on all sides.

Events

Name Description
OnChange Fired when any margin value changes.

Used by