Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ITextFont::Reset method (tom.h)
Resets the character formatting to the specified values.
Syntax
HRESULT Reset(
[in] long Value
);
Parameters
[in] Value
Type: long
The kind of reset. This parameter can be a combination of the following values.
| Value | Meaning |
|---|---|
|
Set to the document default character format if this font object is attached to a range; otherwise, set the defaults to the basic TOM engine defaults. |
|
Sets all properties to undefined values. This value is valid only for a duplicate (clone) font object. |
|
Allow property values to be set, but don’t apply them to the attached range yet. |
|
Apply the current properties to attached range. |
|
Do not update the current font with the attached range properties. |
|
Update the current font with the attached range properties. |
|
Apply temporary formatting. |
|
Do not apply smart fonts. |
|
Do apply smart fonts. |
|
Use points for floating-point measurements. |
|
Use twips for floating-point measurements. |
Return value
Type: HRESULT
If the method succeeds, it returns S_OK. If the method fails, it returns one of the following COM error codes. For more information about COM error codes, see Error Handling in COM.
| Return code | Description |
|---|---|
|
Protected from change. |
|
Invalid argument. |
|
The font object is attached to a range that has been deleted. |
Remarks
Calling ITextFont::Reset with tomUndefined sets all properties to undefined values. Thus, applying the font object to a range changes nothing. This applies to a font object that is obtained by the ITextFont::GetDuplicate method.
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
Feedback
Was this page helpful?
