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

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

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.