ITextRange::GetFont method

Gets an ITextFont object with the character attributes of the specified range.

Syntax


HRESULT GetFont(
  ITextFont **ppFont
);

Parameters

ppFont

Type: ITextFont**

The pointer to an ITextFont object.

Return value

Type: HRESULT

The method returns an HRESULT value. If the method succeeds, it returns S_OK. If ppFont is null, the method fails and it returns E_INVALIDARG.

Remarks

For plain-text controls, these objects do not vary from range to range, but in rich-text solutions, they do. See the section on ITextFont for further details.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

Reference
ITextFont
ITextRange
Conceptual
Text Object Model

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.