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.


expression. PageColor

_expression_An expression that returns a Viewer object.

Return value



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).


The following example sets the page color to red.

vsoViewer.PageColor = 225