Font Object
Publisher Developer Reference |
Contains font attributes (font name, font size, color, and so on) for an object.
Example
Use the Font property to return the Font object. The following instruction applies bold formatting to the selection.
Visual Basic for Applications |
---|
|
The following example formats the first paragraph in the active publication as 24-point Arial and italic.
Visual Basic for Applications |
---|
|
The following example changes the formatting of the Heading 2 style in the active publication to Arial and bold.
Visual Basic for Applications |
---|
|
You can also duplicate a Font object by using the Duplicate property. The following example creates a new character style with the character formatting from the selection in addition to italic formatting. The formatting of the selection is not changed.
Visual Basic for Applications |
---|
|
See Also