Table of contents
TOC
Collapse the table of content
Expand the table of content

BorderArtFormat.Color Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns a ColorFormat object representing the color information for the specified object.

Syntax

expression. Color

_expression_A variable that represents a BorderArtFormat object.

Example

This example tests the font color of the first story in the active document and tells the user if the font color is black or not.

Sub FontColor() 

 If Application.ActiveDocument.Stories(1) _ 
 .TextRange.Font.Color.RGB = RGB(Red:=0, Green:=0, Blue:=0) Then 
 MsgBox "Your font color is black" 
 Else 
 MsgBox "Your font color is not black" 
 End If 

End Sub

See also

Concepts

BorderArtFormat Object

© 2018 Microsoft