Font.FromLogFont Font.FromLogFont Font.FromLogFont Font.FromLogFont Method

Definition

Creates a Font from the specified GDI logical font (LOGFONT) structure.

Overloads

FromLogFont(Object, IntPtr) FromLogFont(Object, IntPtr) FromLogFont(Object, IntPtr) FromLogFont(Object, IntPtr)

Creates a Font from the specified GDI logical font (LOGFONT) structure.

FromLogFont(Object) FromLogFont(Object) FromLogFont(Object) FromLogFont(Object)

Creates a Font from the specified GDI logical font (LOGFONT) structure.

FromLogFont(Object, IntPtr) FromLogFont(Object, IntPtr) FromLogFont(Object, IntPtr) FromLogFont(Object, IntPtr)

Creates a Font from the specified GDI logical font (LOGFONT) structure.

public:
 static System::Drawing::Font ^ FromLogFont(System::Object ^ lf, IntPtr hdc);
public static System.Drawing.Font FromLogFont (object lf, IntPtr hdc);
static member FromLogFont : obj * nativeint -> System.Drawing.Font
Public Shared Function FromLogFont (lf As Object, hdc As IntPtr) As Font

Parameters

lf
Object Object Object Object

An Object that represents the GDI LOGFONT structure from which to create the Font.

hdc
IntPtr IntPtr IntPtr IntPtr

A handle to a device context that contains additional information about the lf structure.

Returns

The Font that this method creates.

Exceptions

Remarks

A GDI LOGFONT, or logical font, is a structure that contains 14 properties that describe a particular font.

Security

SecurityPermission
for access to unmanaged code. Related enumeration: UnmanagedCode

FromLogFont(Object) FromLogFont(Object) FromLogFont(Object) FromLogFont(Object)

Creates a Font from the specified GDI logical font (LOGFONT) structure.

public:
 static System::Drawing::Font ^ FromLogFont(System::Object ^ lf);
public static System.Drawing.Font FromLogFont (object lf);
static member FromLogFont : obj -> System.Drawing.Font
Public Shared Function FromLogFont (lf As Object) As Font

Parameters

lf
Object Object Object Object

An Object that represents the GDI LOGFONT structure from which to create the Font.

Returns

The Font that this method creates.

Remarks

A GDI LOGFONT, or logical font, is a structure that contains 14 properties that describe a particular font.

Security

SecurityPermission
for access to unmanaged code. Related enumeration: UnmanagedCode

Applies to