Previous | Next

Font Property

Gets or sets the font used to display the text.

IFontDisp Font

Property Value

Type: IFontDisp

The font used to display the text. The default is the font of the Windows ListView control.

Remarks

The IFontDisp interface to the ActiveX font object is used to change font characteristics. To change font characteristics use the following IFontDisp properties:

  • Name - A string specifying the facename of the font, e.g. "Arial".
  • Size - A numerical value specifying the point size of the font. Fractional point sizes are also allowed.
  • Bold - A boolean value indicating whether the font is boldfaced.
  • Italic - A boolean value indicating whether the font is italicized.
  • Underline - A boolean value indicating whether the font is underlined.
  • Strikethrough - A boolean value indicating whether the font is strikethrough.
  • Weight - A numerical value specifying the boldness of the font.
  • Charset - A numerical value specifying the Windows character set used in the font.

Examples

To display italicized text, set the Italic property of the Font object to true, like DownloadX.Font.Italic = true.