Viewer.PageColor property (Visio Viewer)

Gets or sets the color of the page in the current drawing that is open in Microsoft Visio Viewer. Read/write.

Syntax

expression.PageColor

expression An expression that returns a Viewer object.

Return value

OLE_COLOR

Remarks

This property returns a value of data type OLE_COLOR that represents the color of the page in Visio Viewer. The OLE_COLOR data type is used for properties that return colors.

Valid hexadecimal values for an OLE_COLOR data type in Visio Viewer are of the form &Hbbggrr, where bb is the blue value, gg the green value, and rr the red value. All three color values range between 00 and FF hexadecimal (255 decimal).

The default value of the PageColor property is white (16777215).

Example

The following example sets the page color to red.

vsoViewer.PageColor = 225

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.