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

IDigitalPen.FillColor [Property][Get/Set]

Gets or Sets the color that will be used to fill the area under the line when the value is 1.

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.


The color value can be calculated using the following formula:

color = (65536 * blue) + (256 * green) + (red)

where red, green, and blue are 0-255. The area under the line is filled with this color if the value of the Fill property is True (-1).

See Also

IDigitalPen.Fill [Property][Get/Set]

Calling Syntax

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


Sub Example(digitalPen As Object)
Dim fillColor As Long
`Getting Property value
fillColor = digitalPen.FillColor
`Setting Property to red
digitalPen.FillColor = 255
End Sub


FUNCTION Example(OBJECT hDigitalPen)
// Getting property value
INT nFillColor = _ObjectGetProperty(hDigitalPen, "FillColor");
// Setting property to red
_ObjectSetProperty(hDigitalPen, "FillColor", 255);