- testPoint
- The Point to be tested.
| Visual Basic (Declaration) | |
|---|---|
Public Function HitTest( _ ByVal testPoint As Point _ ) As AnnObjectBase | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public AnnObjectBase HitTest( Point testPoint ) | |
| C++/CLI | |
|---|---|
public: AnnObjectBase^ HitTest( Point testPoint ) | |
Parameters
- testPoint
- The Point to be tested.
Return Value
An AnnObjectBase that represents the object at the given screen coordinates; or null (Nothing in Visual Basic) if no object is at the tested location.For C#/VB examples, refer to AnnContainer.
testPoint should be in physical coordinates.
If more than one object overlaps underneath the test point, the method will return the object on top of the Z-order.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
Copy Code