Skip to main content
Table of Contents

TTMSFNCGraphics.DrawRectangle Method

Strokes a rectangle defined by double coordinates using the current Stroke and Fill settings.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Overloads

Overload 1

Strokes a rectangle defined by double coordinates using the current Stroke and Fill settings.

FMX.TMSFNCGraphics.hppPascalC++
procedure DrawRectangle(ALeft, ATop, ARight, ABottom: Double; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
virtual void __fastcall DrawRectangle(double ALeft, double ATop, double ARight, double ABottom, TTMSFNCGraphicsModifyRectMode AModifyRectMode = (TTMSFNCGraphicsModifyRectMode)(0x2))/* overload */;

Parameters

Name Description
ALeft Left edge of the rectangle in floating-point pixels.
ATop Top edge of the rectangle in floating-point pixels.
ARight Right edge of the rectangle in floating-point pixels.
ABottom Bottom edge of the rectangle in floating-point pixels.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 2

Strokes the specified sides of a rectangle defined by double coordinates using the current Stroke and Fill settings.

FMX.TMSFNCGraphics.hppPascalC++
procedure DrawRectangle(ALeft, ATop, ARight, ABottom: Double; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
virtual void __fastcall DrawRectangle(double ALeft, double ATop, double ARight, double ABottom, TTMSFNCGraphicsSides ASides, TTMSFNCGraphicsModifyRectMode AModifyRectMode = (TTMSFNCGraphicsModifyRectMode)(0x2))/* overload */;

Parameters

Name Description
ALeft Left edge of the rectangle in floating-point pixels.
ATop Top edge of the rectangle in floating-point pixels.
ARight Right edge of the rectangle in floating-point pixels.
ABottom Bottom edge of the rectangle in floating-point pixels.
ASides Set of sides to draw; unselected sides are omitted.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 3

Strokes a rectangle from a TRectF using the current Stroke and Fill settings.

FMX.TMSFNCGraphics.hppPascalC++
procedure DrawRectangle(ARect: TRectF; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
virtual void __fastcall DrawRectangle(const System::Types::TRectF &ARect, TTMSFNCGraphicsModifyRectMode AModifyRectMode = (TTMSFNCGraphicsModifyRectMode)(0x2))/* overload */;

Parameters

Name Description
ARect Bounding rectangle in floating-point pixels.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 4

Strokes the specified sides of a rectangle from a TRectF using the current Stroke and Fill settings.

FMX.TMSFNCGraphics.hppPascalC++
procedure DrawRectangle(ARect: TRectF; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
virtual void __fastcall DrawRectangle(const System::Types::TRectF &ARect, TTMSFNCGraphicsSides ASides, TTMSFNCGraphicsModifyRectMode AModifyRectMode = (TTMSFNCGraphicsModifyRectMode)(0x2))/* overload */;

Parameters

Name Description
ARect Bounding rectangle in floating-point pixels.
ASides Set of sides to draw; unselected sides are omitted.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 5

Strokes a rectangle defined by integer coordinates using the current Stroke and Fill settings.

FMX.TMSFNCGraphics.hppPascalC++
procedure DrawRectangle(ALeft, ATop, ARight, ABottom: Integer; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
virtual void __fastcall DrawRectangle(int ALeft, int ATop, int ARight, int ABottom, TTMSFNCGraphicsModifyRectMode AModifyRectMode = (TTMSFNCGraphicsModifyRectMode)(0x2))/* overload */;

Parameters

Name Description
ALeft Left edge of the rectangle in integer pixels.
ATop Top edge of the rectangle in integer pixels.
ARight Right edge of the rectangle in integer pixels.
ABottom Bottom edge of the rectangle in integer pixels.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 6

Strokes the specified sides of a rectangle defined by integer coordinates using the current Stroke and Fill settings.

FMX.TMSFNCGraphics.hppPascalC++
procedure DrawRectangle(ALeft, ATop, ARight, ABottom: Integer; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
virtual void __fastcall DrawRectangle(int ALeft, int ATop, int ARight, int ABottom, TTMSFNCGraphicsSides ASides, TTMSFNCGraphicsModifyRectMode AModifyRectMode = (TTMSFNCGraphicsModifyRectMode)(0x2))/* overload */;

Parameters

Name Description
ALeft Left edge of the rectangle in integer pixels.
ATop Top edge of the rectangle in integer pixels.
ARight Right edge of the rectangle in integer pixels.
ABottom Bottom edge of the rectangle in integer pixels.
ASides Set of sides to draw; unselected sides are omitted.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 7

Strokes a rectangle from a TRect using the current Stroke and Fill settings.

FMX.TMSFNCGraphics.hppPascalC++
procedure DrawRectangle(ARect: TRect; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
virtual void __fastcall DrawRectangle(const System::Types::TRect &ARect, TTMSFNCGraphicsModifyRectMode AModifyRectMode = (TTMSFNCGraphicsModifyRectMode)(0x2))/* overload */;

Parameters

Name Description
ARect Bounding rectangle in integer pixels.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.

Overload 8

Strokes the specified sides of a rectangle from a TRect using the current Stroke and Fill settings.

FMX.TMSFNCGraphics.hppPascalC++
procedure DrawRectangle(ARect: TRect; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; virtual;
virtual void __fastcall DrawRectangle(const System::Types::TRect &ARect, TTMSFNCGraphicsSides ASides, TTMSFNCGraphicsModifyRectMode AModifyRectMode = (TTMSFNCGraphicsModifyRectMode)(0x2))/* overload */;

Parameters

Name Description
ARect Bounding rectangle in integer pixels.
ASides Set of sides to draw; unselected sides are omitted.
AModifyRectMode Pixel adjustment applied to the rectangle edges to align with the physical pixel grid.