- testRect
- The System.Windows.Rect to be tested.
| Visual Basic (Declaration) | |
|---|---|
Overloads Public Function HitTest( _ ByVal testRect As Rect _ ) As AnnObjectCollection | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As AnnContainer Dim testRect As Rect Dim value As AnnObjectCollection value = instance.HitTest(testRect) | |
| C# | |
|---|---|
public AnnObjectCollection HitTest( Rect testRect ) | |
| C++/CLI | |
|---|---|
public: AnnObjectCollection^ HitTest( Rect testRect ) | |
Parameters
- testRect
- The System.Windows.Rect to be tested.
Return Value
An AnnObjectCollection that contains the objects that have boundaries inside testRect.For C#/VB examples, refer to AnnContainer.
testRect should be in physical coordinates.
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)
Copy Code