共用方式為


DiagramDocView.CurrentDiagram 屬性

取得目前選取的模型,在使用中圖表] 檢視中。

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

語法

'宣告
Public MustOverride ReadOnly Property CurrentDiagram As Diagram
public abstract Diagram CurrentDiagram { get; }

屬性值

型別:Microsoft.VisualStudio.Modeling.Diagrams.Diagram
在使用中圖表] 檢視中目前選取的模型。

.NET Framework 安全性

請參閱

參考

DiagramDocView 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間