Vcl.AxCtrls.TFontAdapter.GetOleFont

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetOleFont(var OleFont: IFontDisp);

C++

void __fastcall GetOleFont(_di_IFontDisp &OleFont);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.AxCtrls.pas
Vcl.AxCtrls.hpp
Vcl.AxCtrls TFontAdapter

Description

Obtains the IFontDisp interface from the associated OLE object.

ActiveX controls that use TFontAdapter call GetOleFont to obtain the interface that corresponds to the adapter's TFont object. If the OLE object for the font does not exist, GetOleFont creates it.

The IFontDisp interface is returned as the OleFont parameter.

See Also