IFont::get_Name method

Retrieves the name of the font family.

Syntax


HRESULT get_Name(
  [out] BSTR *pName
);

Parameters

pName [out]

A pointer to the caller-allocated variable that receives the name. This string must be freed with SysFreeString when it is no longer needed.

Return value

The method supports the standard return value E_UNEXPECTED, as well as the following values.

Return codeDescription
S_OK

The name was returned successfully.

E_POINTER

The address in the pname parameter is not valid. For example, it may be NULL.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IFont is defined as BEF6E002-A874-101A-8BBA-00AA00300CAB

See also

IFont
IFont::put_Name

 

 

Show: