NavigateToShapesOnDiagramCommand 建構函式
建構函式
命名空間: Microsoft.VisualStudio.Modeling.Shell
組件: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)
語法
'宣告
Public Sub New ( _
locator As ModelElementLocator, _
targetDiagram As Diagram, _
targetSelection As IList(Of DiagramItem), _
priority As Integer _
)
public NavigateToShapesOnDiagramCommand(
ModelElementLocator locator,
Diagram targetDiagram,
IList<DiagramItem> targetSelection,
int priority
)
參數
- targetDiagram
類型:Microsoft.VisualStudio.Modeling.Diagrams.Diagram
要巡覽的目標圖表
- targetSelection
類型:System.Collections.Generic.IList<DiagramItem>
要選取的 ShapeElements 的集合 (應該是在 targetDiagram 上)
- priority
類型:System.Int32
這個命令的優先權。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。