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



rect1
A rectangle to intersect.
rect2
A rectangle to intersect
rect1
A rectangle to intersect.
rect2
A rectangle to intersect
Returns an LogicalRectangle structure that represents the intersection of two rectangles. If there is no intersection, an empty rectangle is returned.

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Function Intersect( _
   ByVal rect1 As LogicalRectangle, _
   ByVal rect2 As LogicalRectangle _
) As LogicalRectangle
Visual Basic (Usage)Copy Code
Dim rect1 As LogicalRectangle
Dim rect2 As LogicalRectangle
Dim value As LogicalRectangle
 
value = LogicalRectangle.Intersect(rect1, rect2)
C# 
public static LogicalRectangle Intersect( 
   LogicalRectangle rect1,
   LogicalRectangle rect2
)
C++/CLI 
public:
static LogicalRectangle Intersect( 
   LogicalRectangle rect1,
   LogicalRectangle rect2
) 

Parameters

rect1
A rectangle to intersect.
rect2
A rectangle to intersect

Return Value

A third LogicalRectangle structure the size of which represents the overlapped area of the two specified rectangles.

Requirements

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

See Also

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