Skip to main content
Table of Contents

TTMSFNCGraphicsPDF.DrawRectangle Method

Draws a rectangle in the PDF context using all four sides.

API unit family: TMSFNCGraphicsPDFEngine Declaring type: TTMSFNCGraphicsPDF Inherited from: TTMSFNCGraphicsPDFEngine

Overloads

Overload 1

Draws a rectangle in the PDF context using all four sides.

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

Parameters

Name Description
ALeft Left edge coordinate.
ATop Top edge coordinate.
ARight Right edge coordinate.
ABottom Bottom edge coordinate.
AModifyRectMode How the rectangle is adjusted for stroke width.

Overload 2

Draws a rectangle with only the specified sides visible in the PDF context.

FMX.TMSFNCGraphicsPDFEngine.hppPascalC++
procedure DrawRectangle(ALeft, ATop, ARight, ABottom: Double; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; override;
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 coordinate.
ATop Top edge coordinate.
ARight Right edge coordinate.
ABottom Bottom edge coordinate.
ASides Which sides of the rectangle to draw.
AModifyRectMode How the rectangle is adjusted for stroke width.