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

IPen.Height [Property][Get/Set]

Get or Set the physical height in pixels that the pen will allocate for itself when displayed in Stacked mode.

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 height set is out of range (16 - 1000), the return value will be InvalidArgument. If the pen is deleted, the return value will be GeneralFailure.

Remarks

This property is ignored when the pen is not in Stacked mode.

See Also

IPen.Stacked [Property][Get/Set]

Calling Syntax

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

[VBA]

Sub Example(pen As Object)
Dim height As Boolean
`Getting Property value
height = pen.Height
`Setting Property value
pen.Height = 75
End Sub

[Cicode]

FUNCTION Example(OBJECT hPen)
INT height;
// Getting current property value
height = _ObjectGetProperty(hPen, "Height");
// Setting Property
_ObjectSetProperty(hPen, "Height", 75);
END