Visual Basic Reference
FontTransparent Property
Returns or sets a value that determines whether background text and graphics on a Form or Printer object or a PictureBox control are displayed in the spaces around characters.
Syntax
object**.FontTransparent** [= boolean]
The FontTransparent property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
boolean | A Boolean expression specifying the state of background text and graphics, as described in Settings. |
Settings
The settings for boolean are:
Setting | Description |
True | (Default) Permits background graphics and text to show around the spaces of the characters in a font. |
False | Masks existing background graphics and text around the characters of a font. |
Remarks
Set FontTransparent at design time using the Properties window or at run time using code. Changing FontTransparent at run time doesn't affect graphics and text already drawn to Form, Printer, or PictureBox.