Vcl.Graphics.TFont.Handle

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Handle: HFont read GetHandle write SetHandle;

C++

__property HFONT Handle = {read=GetHandle, write=SetHandle, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TFont

Description

Provides access to the handle of a system font.

The Handle property indicates the Windows GDI font object handle.

Use Handle as a parameter when calling Windows API functions that require a font handle. Set Handle to make the TFont object represent the Windows font indicated by the font handle. Setting Handle releases the current Windows font resource.

Note: When possible, change a font by setting the other properties of TFont rather than using the Handle property. Setting Handle does not reset the properties that describe the font. However, an OnChange event does occur when Handle is set directly by an application.

See Also

Code Examples