Skip to main content
Table of Contents

TTMSFNCGraphicsContextGeneral.DrawRect Method

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

API unit family: TMSFNCGraphics.General Declaring type: TTMSFNCGraphicsContextGeneral

Syntax

FMX.TMSFNCGraphics.General.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; omit sides to draw a partial border.
AModifyRectMode Controls pixel-boundary adjustments applied to the rectangle.