Using the Process Analyst > Process Analyst for Developers > Automation Model > IPen.Stacked [Property][Get/Set]

IPen.Stacked [Property][Get/Set]

Get or Set whether the pen is visually displayed stacked or overlaid.

Defined As

Execution Result

If the property get/set succeeds, the return value will be Success. If the return variable is bad, the return value will be InvalidArgument. If the pen is deleted, the return value will be GeneralFailure.

Limits

Remarks

When stacked, pens will be drawn under each other; when overlaid, the pens will be drawn over the top of each other.

Calling Syntax

Assumes you have passed a valid pen object into the function.

[VBA]

Sub Example(pen As Object)
Dim stacked As Boolean
`Getting Property value
stacked = pen.Stacked
`Setting Property value
pen.Stacked = True
End Sub

[Cicode]

FUNCTION Example(OBJECT hPen)
INT bStacked;
// Getting current property value
bStacked = _ObjectGetProperty(hPen, "Stacked");
// Setting property value
_ObjectSetProperty(hPen, "Stacked", -1);
END