Share via


Diagram.HitTest Method

Gets the shapes to include in the hit test.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public Function HitTest ( _
    clipRectangle As RectangleD, _
    requireCompleteContainment As Boolean _
) As ICollection
public ICollection HitTest(
    RectangleD clipRectangle,
    bool requireCompleteContainment
)
public:
ICollection^ HitTest(
    RectangleD clipRectangle, 
    bool requireCompleteContainment
)
member HitTest : 
        clipRectangle:RectangleD * 
        requireCompleteContainment:bool -> ICollection
public function HitTest(
    clipRectangle : RectangleD, 
    requireCompleteContainment : boolean
) : ICollection

Parameters

  • requireCompleteContainment
    Type: Boolean

    true to include a shape only if the whole shape is in the selection rectangle; false to include shapes that are partially in the selection rectangle.

Return Value

Type: ICollection
The shapes to include in the hit test.

Remarks

A hit test verifies whether a point is over a shape on the diagram.

.NET Framework Security

See Also

Reference

Diagram Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace