指定したサイズ、スタイル、単位、および文字セットを使用して、新しい Font を初期化します。
名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文
'宣言
Public Sub New ( _
family As FontFamily, _
emSize As Single, _
style As FontStyle, _
unit As GraphicsUnit, _
gdiCharSet As Byte _
)
'使用
Dim family As FontFamily
Dim emSize As Single
Dim style As FontStyle
Dim unit As GraphicsUnit
Dim gdiCharSet As Byte
Dim instance As New Font(family, emSize, style, unit, gdiCharSet)
public Font (
FontFamily family,
float emSize,
FontStyle style,
GraphicsUnit unit,
byte gdiCharSet
)
public:
Font (
FontFamily^ family,
float emSize,
FontStyle style,
GraphicsUnit unit,
unsigned char gdiCharSet
)
public Font (
FontFamily family,
float emSize,
FontStyle style,
GraphicsUnit unit,
byte gdiCharSet
)
public function Font (
family : FontFamily,
emSize : float,
style : FontStyle,
unit : GraphicsUnit,
gdiCharSet : byte
)
パラメータ
- family
新しい Font の FontFamily。
- emSize
新しいフォントの em サイズ (単位は unit パラメータで指定された値による)。
- style
新しいフォントの FontStyle。
- unit
新しいフォントの GraphicsUnit。
- gdiCharSet
新しいフォントに使用する GDI 文字セットを指定する Byte。
例外
| 例外の種類 | 条件 |
|---|---|
emSize が、0 以下であるか、無限大となるか、または有効な数値ではありません。 |
|
family が null 参照 (Visual Basic では Nothing) です。 |
解説
gdiCharSet パラメータは、プラットフォーム SDK のヘッダー ファイル WinGDI.h で定義されたリストから値を取得します。
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1、1.0