Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Contains(Single,Single) Method
See Also 
Leadtools.Annotations Namespace > AnnRectangle Structure > Contains Method : Contains(Single,Single) Method



x
The x-coordinate of the point to test.
y
The y-coordinate of the point to test.
x
The x-coordinate of the point to test.
y
The y-coordinate of the point to test.
Determines if the specified point is contained within this AnnRectangle structure.

Syntax

Visual Basic (Declaration) 
Overloads Public Function Contains( _
   ByVal x As Single, _
   ByVal y As Single _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnRectangle
Dim x As Single
Dim y As Single
Dim value As Boolean
 
value = instance.Contains(x, y)
C# 
public bool Contains( 
   float x,
   float y
)
C++/CLI 
public:
bool Contains( 
   float x,
   float y
) 

Parameters

x
The x-coordinate of the point to test.
y
The y-coordinate of the point to test.

Return Value

This method returns true if the point defined by x and y is contained within this AnnRectangle structure; otherwise false.

Remarks

The point is treated as if its in the same unit as the AnnRectangle.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features