Table of Contents

TTMSFNCGraphicsSVGEngine.DrawRectangle Method

Emits an SVG <rect> element using all four sides.

API unit family: TMSFNCGraphicsSVGEngine Declaring type: TTMSFNCGraphicsSVGEngine

Overloads

Overload 1

Emits an SVG <rect> element using all four sides.

procedure DrawRectangle(ALeft, ATop, ARight, ABottom: Double; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; override;

Parameters

Name Description
ALeft Left edge.
ATop Top edge.
ARight Right edge.
ABottom Bottom edge.
AModifyRectMode How the rectangle is adjusted for stroke width.

Overload 2

Emits an SVG <rect> with only the specified sides visible.

procedure DrawRectangle(ALeft, ATop, ARight, ABottom: Double; ASides: TTMSFNCGraphicsSides; AModifyRectMode: TTMSFNCGraphicsModifyRectMode = gcrmShrinkAll); overload; override;

Parameters

Name Description
ALeft Left edge.
ATop Top edge.
ARight Right edge.
ABottom Bottom edge.
ASides Which sides to draw.
AModifyRectMode How the rectangle is adjusted for stroke width.