CTextFont2.Stylemethod
Gets/sets the character style handle of the characters in a range.
Syntax
PRIVATE PROPERTY CTextFont2.Style () AS LONG
Parameters
| Name | Description | |
|---|---|---|
Value | The new character style handle. |
Return value
(GET) The character style handle.
(SET) If the method succeeds, it returns S_OK. If the method fails, it returns one of the following COM error code.
If the method succeeds, it returns S_OK. If the method fails, it returns one of the following COM error codes.
Description
Gets/sets the character style handle of the characters in a range.
Remarks
The Text Object Model (TOM) version 1.0 does not specify the meanings of the style handles. The meanings depend on other facilities of the text system that implements TOM.
Example
(GET) PROPERTY Style () AS LONG (SET) PROPERTY Style (BYVAL Value AS LONG)
Reference
- Defined in AfxNova/CTextFont2.inc:375
- Documented in Windows/WIndows Controls/RichEdit/CTextFont2 Class.md
- Topic: CTextFont2 Class