Skip to main content
Table of Contents

TTMSFNCGraphicsContextWin.DrawRect Method

Draws the outline of a rectangle using the specified stroke style.

API unit family: TMSFNCGraphics.Win Declaring type: TTMSFNCGraphicsContextWin

Syntax

FMX.TMSFNCGraphics.Win.hppPascalC++
procedure DrawRect(AStroke: TTMSFNCGraphicsStroke; ARect: TRectF; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); override;
virtual void __fastcall DrawRect(TTMSFNCGraphicsStroke* AStroke, const System::Types::TRectF &ARect, TTMSFNCGraphicsSides ASides, TTMSFNCGraphicsModifyRectMode AModifyRectMode = (TTMSFNCGraphicsModifyRectMode)(0x2));

Parameters

Name Description
AStroke The stroke style to apply.
ARect The rectangle to outline.
ASides The set of sides to draw.
AModifyRectMode Controls pixel-boundary adjustments applied to the rectangle.