共用方式為


Diagram.LassoSelect 方法

取得選取範圍矩形中的圖案的清單。

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

語法

'宣告
Public Function LassoSelect ( _
    rectangle As RectangleD, _
    requireCompleteContainment As Boolean _
) As DiagramItemCollection
public DiagramItemCollection LassoSelect(
    RectangleD rectangle,
    bool requireCompleteContainment
)

參數

  • requireCompleteContainment
    類型:System.Boolean
    true 表示只在整個圖案位於範圍矩形中時才包含圖案,false 表示包含部分位於範圍矩形的圖案。

傳回值

類型:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection
選取範圍矩形中的圖案的清單。

備註

點擊測試驗證點是否在圖表中的圖案。

.NET Framework 安全性

請參閱

參考

Diagram 類別

Microsoft.VisualStudio.Modeling.Diagrams 命名空間