Class GdiFont
A thin wrapper around a handle to a font
Inheritance
Inherited Members
Namespace: Telerik.Pdf.Gdi
Assembly: TelerikData.dll
Syntax
public class GdiFont
Constructors
GdiFont(IntPtr, String, Int32)
Class constructor
Declaration
public GdiFont(IntPtr hFont, string faceName, int height)
Parameters
System.IntPtr
hFont
A handle to an existing font. |
System.String
faceName
|
System.Int32
height
|
Properties
FaceName
Declaration
public string FaceName { get; }
Property Value
System.String
|
Handle
Declaration
public IntPtr Handle { get; }
Property Value
System.IntPtr
|
Height
Declaration
public int Height { get; }
Property Value
System.Int32
|
Methods
CreateDesignFont(String, Boolean, Boolean, GdiDeviceContent)
Creates a font whose height is equal to the negative value of the EM Square
Declaration
public static GdiFont CreateDesignFont(string faceName, bool bold, bool italic, GdiDeviceContent dc)
Parameters
System.String
faceName
The typeface name of a font. |
System.Boolean
bold
|
System.Boolean
italic
|
GdiDeviceContent
dc
|
Returns
GdiFont
|
CreateFont(String, Int32, Boolean, Boolean)
Creates a font based on the supplied typeface name and size.
Declaration
public static GdiFont CreateFont(string faceName, int height, bool bold, bool italic)
Parameters
System.String
faceName
The typeface name of a font. |
System.Int32
height
The height, in logical units, of the font's character cell or character. |
System.Boolean
bold
|
System.Boolean
italic
|
Returns
GdiFont
|
Dispose()
Declaration
public virtual void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Finalize()
Class destructor
Declaration
protected void Finalize()
GetMetrics(GdiDeviceContent)
Declaration
public GdiFontMetrics GetMetrics(GdiDeviceContent dc)
Parameters
GdiDeviceContent
dc
|
Returns
GdiFontMetrics
|