StencilTextColor Property [Visio 2003 SDK Documentation]
Determines the color of text in stencil windows in Microsoft Office Visio.
objRet = object.StencilTextColor
object.StencilTextColor = setObj
objRet OLE_COLOR. Current text color in stencil windows.
object Required. An expression that returns an ApplicationSettings object.
setObj Required OLE_COLOR. New text color in stencil windows.
Version added
2003
Remarks
Valid values for an OLE_COLOR property within Visio can be one of the following:
- &H00bbggrr, where bb is the blue value between 0 and 0xFF (255), gg the green value, and rr the red value.
- &H800000xx, where xx is a valid GetSysColor index.
For details about the GetSysColor function, search for "GetSysColor" in the Microsoft Platform SDK on MSDN.
The OLE_COLOR data type is used for properties that return colors. When a property is declared as OLE_COLOR, the Properties window displays a color-picker dialog box that allows the user to select the color for the property visually, rather than having to remember the numeric equivalent.
In addition, you can use the following Microsoft Visual Basic for Applications (VBA) color constants for OLE_COLOR.
Constant | Value | Description |
---|---|---|
vbBlack |
0x0 |
Black |
vbRed |
0xFF |
Red |
vbGreen |
0xFF00 |
Green |
vbYellow |
0xFFFF |
Yellow |
vbBlue |
0xFF0000 |
Blue |
vbMagenta |
0xFF00FF |
Magenta |
vbCyan |
0xFFFF00 |
Cyan |
vbWhite |
0xFFFFFF |
White |
Setting the StencilTextColor property is equivalent to setting the Text color option in the Color Settings dialog box. (On the Tools menu, click Options, click Advanced, and then click Color Settings.)
Applies to | ApplicationSettings object
See Also | BackgroundColor property | BackgroundColorGradient property | DrawingBackgroundColorGradient property | DrawingPageColor property