FaceID property

Microsoft Visio Developer Reference

FaceID property

       

Gets or sets the icon for an item.

Version added

2000

Syntax

intLong = object.FaceID
object.FaceID = intLong

intLong

Required Integer. Zero or more when the button uses one of the Visio standard built-in images. Negative one (-1) when the button has no icon, or has a custom image.

object

Required. An expression that returns an object in the Applies to list.

Remarks

You can use any of the constants prefixed with visIconIX that are declared by the Visio type library in VisUIIconIDs.

The FaceID property determines a button's icon, but not its function. Use the CmdNum property of a ToolbarItem or MenuItem object to set a button's function.

The FaceID property is the same as the TypeSpecific1 property when the CtrlType property is type visCtrlTypeBUTTON, which is declared in the Visio type library in VisUICtrlTypes.