Skip to main content
Table of Contents

TTMSFNCGraphicsContext.DrawRect Method

Strokes the specified sides of a rectangle using AStroke settings.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphicsContext

Syntax

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

Parameters

Name Description
AStroke Stroke settings (color, width, kind) to apply.
ARect 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.