Edit

Share via


Support.FontChangeGdiCharSet(Font, Byte) Method

Definition

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Returns a font for a specified GDI character set.

public:
 static System::Drawing::Font ^ FontChangeGdiCharSet(System::Drawing::Font ^ CurrentFont, System::Byte GdiCharSet);
public static System.Drawing.Font FontChangeGdiCharSet (System.Drawing.Font CurrentFont, byte GdiCharSet);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static System.Drawing.Font FontChangeGdiCharSet (System.Drawing.Font CurrentFont, byte GdiCharSet);
static member FontChangeGdiCharSet : System.Drawing.Font * byte -> System.Drawing.Font
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member FontChangeGdiCharSet : System.Drawing.Font * byte -> System.Drawing.Font
Public Function FontChangeGdiCharSet (CurrentFont As Font, GdiCharSet As Byte) As Font

Parameters

CurrentFont
Font

A Font.

GdiCharSet
Byte

A byte value that specifies the GDI character set to use.

Returns

A Font for the specified GDI character set.

Attributes

Remarks

In Visual Basic 6.0, the stdFont object had a CharSet property that specified the GDI character set for a font. In Visual Basic, the character set is specified as an optional of a Font constructor. This function is used by the upgrade tools to convert a stdFont to a Font.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Applies to

See also