Using the Process Analyst > Process Analyst for Developers > Automation Model > IObjectViewPenItem.BlockColor [Property][Get]

IObjectViewPenItem.BlockColor [Property][Get]

Gets the color representing this item in the ObjectView.

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.

Remarks

The color value can be calculated using the following formula: color = (65536 * Blue) + (256 * Green) + (Red) where red, green, and blue are 0-255.

Calling Syntax

This example assumes there is a valid pen item as retrieved from an ObjectView. (for example, VBA: ObjectView.Items.Item(1).Items.Item(1) This will be a pen).

[VBA]

Sub Example(objectViewPenItem As Object)
Dim blockColor As Long
`Getting Property value
blockColor = objectViewPenItem.BlockColor
End Sub

[Cicode]

FUNCTION Example(OBJECT hObjectViewPenItem)
// Getting property value
INT blockColor = _ObjectGetProperty(hObjectViewItem, "BlockColor");
END