Windows apps
Collapse the table of content
Expand the table of content
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


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Provides information about the intersection between the geometries in the GeometryHitTestParameters and the visual which was hit.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public enum class IntersectionDetail

Member nameDescription

The Geometry hit test parameter and the target visual, or geometry, do not intersect.


The Geometry hit test parameter is fully contained within the boundary of the target visual or geometry.


The target visual, or geometry, is fully inside the Geometry hit test parameter.


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 IntersectionDetail value is not calculated.

The following illustration shows the relationship between the hit test geometry (the blue circle) and the visual geometry (the red square).

Diagram of IntersectionDetail used in hit testing

Intersection between hit test geometry and visual geometry during hit testing

The following example shows how to use the IntersectionDetail property of GeometryHitTestResult.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
© 2018 Microsoft