หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
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
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | tom.h |
| DLL | Msftedit.dll |
See also
Conceptual
Reference