會開啟一個圖示視窗,此視窗會顯示主圖形的圖示。
語法
expression。 OpenIconWindow
表達 代表 Master 物件的變數。
傳回值
視窗
註解
如果主圖形的圖示已經顯示在圖示視窗中,則 OpenIconWindow 方法會啟動該視窗,而不是開啟另一個視窗。
範例
這個 Microsoft Visual Basic for Applications (VBA) 巨集將示範如何使用 OpenIconWindow 方法來開啟圖示編輯視窗。
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
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。