Platform SDK: Performance Monitoring

CounterItem.Color

Retrieves or sets the color of the counter value displayed in the System Monitor. This is a read/write property.

Public Property Color(
  value as OLE_COLOR
) as OLE_COLOR

Parameters

value
[in] Determines the color used for the counter values.

Remarks

You can define a custom color in the Visual Basic Editor using the Color combo box of the Properties dialog box. The user cannot modify the custom color using the Properties dialog box in the System Monitor.

The color you specify with this method is applied to the graph pane and legend for line graph and histogram views.

Return Values

The current color setting for the counter value. The OLE_COLOR data type holds color information for controls and their containers to use.

Example

Dim ctrItem as CounterItem
ctrItem.Color = vbRed
ctrItem.Color = RGB(255, 255, 0)
ctrItem.Color = &HFF00FF

Dim ColorVal as Variant
ColorVal = ctrItem.Color

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Smonctrl.odl.

See Also

System Monitor Automation Interface Overview, System Monitor Automation Interface Properties