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

IAnalogPen.LineWidth [Property][Get/Set]

Gets or sets the width in pixels of the pen line when it is drawn.

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.


Calling Syntax

This example assumes there is a valid Analog Pen object to be passed into the example methods.


Sub Example(analogPen As Object)
Dim lineWidth As Long
`Getting Property value
lineWidth = analogPen.LineWidth
`Setting Property value
analogPen.LineWidth = 5
End Sub


FUNCTION Example(OBJECT hAnalogPen)
// Getting property value
INT nLineWidth = _ObjectGetProperty(hAnalogPen, "LineWidth");
// Setting property value
_ObjectSetProperty(hAnalogPen, "LineWidth", 5);