ShapeField.SetSelectionRange 方法
設定子圖形欄位範圍的選取範圍。
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
語法
'宣告
Public Overridable Sub SetSelectionRange ( _
selection As SelectedShapesCollection, _
anchorItem As DiagramItem, _
toItem As DiagramItem _
)
public virtual void SetSelectionRange(
SelectedShapesCollection selection,
DiagramItem anchorItem,
DiagramItem toItem
)
參數
- selection
類型:Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection
選取的圖案。
- anchorItem
類型:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
在範圍開頭處的圖案欄位。
- toItem
類型:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
在範圍結尾處的圖案欄位。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。