Table of Contents

TTMSFNCGraphicsContext.DrawRect Method

Strokes the specified sides of a rectangle using AStroke settings.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphicsContext

Syntax

procedure DrawRect(AStroke: TTMSFNCGraphicsStroke; ARect: TRectF; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); virtual; abstract;

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.