The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
IntersectionDetail Enumeration
Visual Studio 2010
Provides information about the intersection between the geometries in the GeometryHitTestParameters and the visual which was hit.
Assembly: PresentationCore (in PresentationCore.dll)
| Member name | Description | |
|---|---|---|
| NotCalculated | The IntersectionDetail value is not calculated. | |
| Empty | The Geometry hit test parameter and the target visual, or geometry, do not intersect. | |
| FullyInside | The target visual, or geometry, is fully inside the Geometry hit test parameter. | |
| FullyContains | The Geometry hit test parameter is fully contained within the boundary of the target visual or geometry. | |
| Intersects | The Geometry hit test parameter and the target visual, or geometry, intersect. This means that the two elements overlap, but neither element contains the other. |
The following example shows how to use the IntersectionDetail property of GeometryHitTestResult.
' Return the result of the hit test to the callback. Public Function MyHitTestResultCallback(ByVal result As HitTestResult) As HitTestResultBehavior ' Retrieve the results of the hit test. Dim intersectionDetail As IntersectionDetail = (CType(result, GeometryHitTestResult)).IntersectionDetail Select Case intersectionDetail Case IntersectionDetail.FullyContains ' Add the hit test result to the list that will be processed after the enumeration. hitResultsList.Add(result.VisualHit) Return HitTestResultBehavior.Continue Case IntersectionDetail.Intersects ' Set the behavior to return visuals at all z-order levels. Return HitTestResultBehavior.Continue Case IntersectionDetail.FullyInside ' Set the behavior to return visuals at all z-order levels. Return HitTestResultBehavior.Continue Case Else Return HitTestResultBehavior.Stop End Select End Function
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Community Additions
Show:
