FromLogFont Method (Object)
Collapse the table of content
Expand the table of content

Font.FromLogFont Method (Object)

 

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

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public static Font FromLogFont(
	object lf
)

Parameters

lf
Type: System.Object

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

Return Value

Type: System.Drawing.Font

The Font that this method creates.

A GDI LOGFONT, or logical font, is a structure that contains 14 properties that describe a particular font. For more information, see "The Logical Font" in the Windows Development documentation at http://msdn.microsoft.com/library.

SecurityPermission

for access to unmanaged code. Related enumeration: UnmanagedCode

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft