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




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

Syntax

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

Parameters

x
The x-coordinate of the point to test.
y
The y-coordinate of the point to test.
unit
The unit of measure for the specified coordinates.

Return Value

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

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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