共用方式為


Diagram.IsSelected 方法

確認在 [圖表] 檢視中是否已選取圖案。

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

語法

'宣告
Public Function IsSelected ( _
    shape As ShapeElement _
) As Boolean
public bool IsSelected(
    ShapeElement shape
)

參數

傳回值

類型:System.Boolean
如果在圖表檢視中已選取圖案,則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

Diagram 類別

Microsoft.VisualStudio.Modeling.Diagrams 命名空間