Syntax
SmallCaps [On]
SmallCaps()
Remarks
The SmallCaps statement adds or removes the small caps character format for the current selection, or controls small caps formatting for characters to be inserted at the insertion point.
Argument | Explanation |
On | Specifies whether to add or remove the small caps format: 1 Formats the selection as small caps. 0 (zero) Removes the small caps format. Omitted Toggles the small caps format. |
The SmallCaps() function returns the following values.
Value | Explanation |
0 (zero) | If none of the selection is formatted as small caps |
–1 | If part of the selection is formatted as small caps |
1 | If all the selection is formatted as small caps |
Example
If the current paragraph (selected using the predefined bookmark " \ Para") has any small caps formatting, this example formats the entire paragraph as small caps:
SelType 1 'Cancel selection, if any EditGoTo "\Para" If SmallCaps() = -1 Then SmallCaps 1
See Also
AllCaps, ChangeCase, FormatFont, UCase$()