Share via


Master.OpenIconWindow Method

Visio Automation Reference

Opens an icon window that shows a master's icon.

Version Information
 Version Added:  Visio 4.1

Syntax

expression.OpenIconWindow

expression   A variable that represents a Master object.

Return Value
Window

Remarks

If the master's icon is already displayed in an icon window, the OpenIconWindow method activates that window rather than opening another window.

Example

This Microsoft Visual Basic for Applications (VBA) macro shows how to use the OpenIconWindow method to open an icon editing window.

Visual Basic for Applications
  
Public Sub OpenIconWindow_Example()
 
    Dim vsoMaster As Visio.Master 
    Dim vsoIconWindow As Visio.Window 
'Add a master to the document stencil and open its icon editing window.
Set vsoMaster = ThisDocument.Masters.Add 
Set vsoIconWindow = vsoMaster.OpenIconWindow 

End Sub

See Also