Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property Font As FontInfo |
C# | |
---|---|
public FontInfo Font {get;} |
Property Value
FontInfo object that contains font information.This property is available at run time only.
You can specify the font size and name. You can also specify whether the font style is bold, italic, underlined, overlined, or strikethrough.
Note: The overline style is not supported in browsers release prior to Internet Explorer 4.
For more information on the font settings, see the FontInfo Class topic in the Visual Studio .NET help file.
This example shows how to set the font for the default style.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family