Viewer.BackColor property (Visio Viewer)

Gets or sets the background color of Microsoft Visio Viewer. Read/write.

Syntax

expression.BackColor

expression An expression that returns a Viewer object.

Return value

OLE_COLOR

Remarks

Returns a value of data type OLE_COLOR that represents the background color of 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 BackColor property controls the color shown in the Visio Viewer window behind the images shown for page and shapes. The default value of the BackColor property matches the color of the current Windows color scheme, if that color is available; otherwise, the default is white.

To set BackColor to "Visio blue," use the hexadecimal value &HFFFFA0 (or the decimal value 16777120).

Example

The following code sets the value of the BackColor property to the default value in a Windows form.

 vsoViewer.BackColor = &H8000000F

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.