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

IPen.Visible [Property][Get/Set]

Get or set whether this pen will be visually shown (True) or hidden (False) to the operator.

Defined As

Execution Result

If the property get 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.


Calling Syntax

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


Sub Example(pen As Object)
Dim visible As Boolean
`Get the property value
visible = pen.Visible
` Set the property value
pen.Visible = False
End Sub


INT bVisible;
// Get the property value
bVisible = _ObjectGetProperty(hPen, "Visible", 0.5);
// Set the property value
_ObjectSetProperty(hPen, "Visible", 0);