Export (0) Print
Expand All

Font Constructor

.NET Framework 1.1
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Overload List

This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Supported only by the .NET Compact Framework.

[Visual Basic] Public Sub New(IntPtr)
[C#] public Font(IntPtr);
[C++] public: Font(IntPtr);
[JScript] public function Font(IntPtr);

Initializes a new Font object that uses the specified existing Font object and FontStyle enumeration.

[Visual Basic] Public Sub New(Font, FontStyle)
[C#] public Font(Font, FontStyle);
[C++] public: Font(Font*, FontStyle);
[JScript] public function Font(Font, FontStyle);

Initializes a new Font object using a specified size. Sets the style to FontStyle.Regular and sets the unit to GraphicsUnit.Point.

[Visual Basic] Public Sub New(FontFamily, Single)
[C#] public Font(FontFamily, float);
[C++] public: Font(FontFamily*, float);
[JScript] public function Font(FontFamily, float);

Initializes a new Font object using a specified size. Sets the unit to GraphicsUnit.Point and sets the style to FontStyle.Regular.

[Visual Basic] Public Sub New(String, Single)
[C#] public Font(string, float);
[C++] public: Font(String*, float);
[JScript] public function Font(String, float);

Initializes a new Font object using a specified size and style. Sets the unit to GraphicUnit.Point.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(FontFamily, Single, FontStyle)
[C#] public Font(FontFamily, float, FontStyle);
[C++] public: Font(FontFamily*, float, FontStyle);
[JScript] public function Font(FontFamily, float, FontStyle);

Initializes a new Font using a specified size and unit. Sets the style to FontStyle.Regular.

[Visual Basic] Public Sub New(FontFamily, Single, GraphicsUnit)
[C#] public Font(FontFamily, float, GraphicsUnit);
[C++] public: Font(FontFamily*, float, GraphicsUnit);
[JScript] public function Font(FontFamily, float, GraphicsUnit);

Initializes a new Font object using a specified size and style. Sets the unit to GraphicsUnit.Point.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, Single, FontStyle)
[C#] public Font(string, float, FontStyle);
[C++] public: Font(String*, float, FontStyle);
[JScript] public function Font(String, float, FontStyle);

Initializes a new Font object using a specified size and unit. The style is set to FontStyle.Regular.

[Visual Basic] Public Sub New(String, Single, GraphicsUnit)
[C#] public Font(string, float, GraphicsUnit);
[C++] public: Font(String*, float, GraphicsUnit);
[JScript] public function Font(String, float, GraphicsUnit);

Initializes a new Font using a specified size, style, and unit.

[Visual Basic] Public Sub New(FontFamily, Single, FontStyle, GraphicsUnit)
[C#] public Font(FontFamily, float, FontStyle, GraphicsUnit);
[C++] public: Font(FontFamily*, float, FontStyle, GraphicsUnit);
[JScript] public function Font(FontFamily, float, FontStyle, GraphicsUnit);

Initializes a new Font object using a specified size, style, and unit.

[Visual Basic] Public Sub New(String, Single, FontStyle, GraphicsUnit)
[C#] public Font(string, float, FontStyle, GraphicsUnit);
[C++] public: Font(String*, float, FontStyle, GraphicsUnit);
[JScript] public function Font(String, float, FontStyle, GraphicsUnit);

Initializes a new Font object using a specified size, style, unit, and character set.

[Visual Basic] Public Sub New(FontFamily, Single, FontStyle, GraphicsUnit, Byte)
[C#] public Font(FontFamily, float, FontStyle, GraphicsUnit, byte);
[C++] public: Font(FontFamily*, float, FontStyle, GraphicsUnit, unsigned char);
[JScript] public function Font(FontFamily, float, FontStyle, GraphicsUnit, Byte);

Initializes a new Font using a specified size, style, unit, and character set.

[Visual Basic] Public Sub New(String, Single, FontStyle, GraphicsUnit, Byte)
[C#] public Font(string, float, FontStyle, GraphicsUnit, byte);
[C++] public: Font(String*, float, FontStyle, GraphicsUnit, unsigned char);
[JScript] public function Font(String, float, FontStyle, GraphicsUnit, Byte);

Initializes a new Font using a specified size, style, unit, and character set.

[Visual Basic] Public Sub New(FontFamily, Single, FontStyle, GraphicsUnit, Byte, Boolean)
[C#] public Font(FontFamily, float, FontStyle, GraphicsUnit, byte, bool);
[C++] public: Font(FontFamily*, float, FontStyle, GraphicsUnit, unsigned char, bool);
[JScript] public function Font(FontFamily, float, FontStyle, GraphicsUnit, Byte, Boolean);

Initializes a new Font object using the specified size, style, unit, and character set.

[Visual Basic] Public Sub New(String, Single, FontStyle, GraphicsUnit, Byte, Boolean)
[C#] public Font(string, float, FontStyle, GraphicsUnit, byte, bool);
[C++] public: Font(String*, float, FontStyle, GraphicsUnit, unsigned char, bool);
[JScript] public function Font(String, float, FontStyle, GraphicsUnit, Byte, Boolean);

See Also

Font Class | Font Members | System.Drawing Namespace

Show:
© 2015 Microsoft