ListField.SetSelectionRange 方法
將選取範圍設定為某個範圍的子欄位
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
語法
'宣告
Public Overrides Sub SetSelectionRange ( _
selection As SelectedShapesCollection, _
anchorItem As DiagramItem, _
toItem As DiagramItem _
)
public override void SetSelectionRange(
SelectedShapesCollection selection,
DiagramItem anchorItem,
DiagramItem toItem
)
參數
- selection
型別:Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection
若要更新選取的項目。
- anchorItem
型別:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
選取範圍中 DiagramItem 錨點。
- toItem
型別:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
要延伸選取範圍,從錨點開始 DiagramItem。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。