Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Sets the default character formatting for this instance of the Text Object Model (TOM) engine.
Syntax
HRESULT SetDocumentFont(
[in] ITextFont2 *pFont
);
Parameters
[in] pFont
Type: ITextFont2*
The font object that provides the default character formatting.
Return value
Type: HRESULT
If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.
Remarks
You can also set the default character formatting by calling ITextFont::Reset(tomDefault).
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 [desktop apps only] |
| Minimum supported server | Windows Server 2012 [desktop apps only] |
| Target Platform | Windows |
| Header | tom.h |
| DLL | Msftedit.dll |