TiObjectCanvas.GetObjectPenStyle

TiObjectCanvas

Used to get an object's pen style property value.

type TPenStyle = (psSolid, psDash, psDot, psDashDot, psDashDotDot, psClear, psInsideFrame);

function GetObjectPenStyle(Handle : Integer) : TPenStyle;

Description

Call GetObjectPenStyle to get an object's pen style property value.

These are the possible return values:

Value
Meaning
psSolid
A solid line.
psDash
A line made up of a series of dashes.
psDot
A line made up of a series of dots.
psDashDot
A line made up of alternating dashes and dots.
psDashDotDot
A line made up of a serious of dash-dot-dot combinations.
psClear
No line is drawn (used to omit the line around shapes that draw an outline using the current pen).
psInsideFrame
A solid line, but one that may use a dithered color if Width is greater than 1.

Example

Delphi

Value := iComponent.GetObjectPenStyle(5);

C++ Builder

Value = iComponent->GetObjectPenStyle(5);

Contents | Index | Previous | Next