Spread 8.0 Documentation
GetFontHandle Method
Support Options
ActiveX Reference > ActiveX Methods > GetFontHandle Method

Glossary Item Box

GetFontHandle Method


See Also    DLL

Applies To

fpSpread control

Description

Returns the font handle for the specified OLE font.

Syntax

C++

long CSpreadSheet::GetFontHandle(LPDISPATCH Font);

Visual Basic

fpSpread.GetFontHandle(ByVal Font As StdFont) As OLE_HANDLE

Parameters

The following parameter is available:

Parameter Description
Font OLE font

Remarks

You can use this method to return the font handle (HFONT) for the specified OLE font for the custom cell. This method can be used if the custom cell is using a windows control for editing or rendering and you need to use an HFONT instead of an OLE font in the CTInitializeControl event.

This method returns information for the entire workbook, including all sheets in the control.

Return Type

Font handle

See Also

QueryCustomName, SetCustomName methods

DLL Correspondence

SSGetCustomRenderer function

Copyright © GrapeCity, inc. All rights reserved.