Font.ID property (Visio)
Gets the ID of an object. Read-only.
Syntax
expression.ID
expression A variable that represents a Font object.
Return value
Long
Remarks
For Font objects, the ID property corresponds to the number stored in the Font cell of the row in a shape's Character Properties section. For example, to apply the font named "Arial" to a shape's text, create a Font object that represents "Arial," get the ID of that font, and then set the CharProps property of the Shape object to that ID.
The ID associated with a particular font varies from system to system or as fonts are installed and removed on a given system.
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.