Platform SDK: Performance Monitoring

SystemMonitor.Font

Retrieves or sets the font of the control. This is an ambient read/write property.

Public Property Font( ) as IFontDisp

Remarks

You set the value of the Font property by reference, passing a pointer to the IFontDisp interface to change or retrieve the properties of a Font object through the Font object interface. Properties that you use the IFontDisp interface to define include name, size, bold, italic, underline, strikethrough, and weight.

For more information about the Font object, refer to the "Font Object" section in Visual Basic Help.

Return Values

A reference to a Font object.

Example

Dim fnt as StdFont
Set Graph1.Font=fnt
fnt.Italic=True

Requirements

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

See Also

System Monitor Automation Interface Overview, System Monitor Automation Interface Properties