Version

RectangleExclude Method

Rectangle exclusion geometric utility function. Effectively the opposite of a union function.
Syntax
'Declaration
 
Public Shared Function RectangleExclude( _
   ByVal sourceRect As RectangleF, _
   ByVal removeRect As RectangleF _
) As RectangleF
public static RectangleF RectangleExclude( 
   RectangleF sourceRect,
   RectangleF removeRect
)

Parameters

sourceRect
The original rectangle.
removeRect
The rectangle to remove from the original.

Return Value

A rectangle representing the part of sourceRect which does not intersect with removeRect.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also