Version

GetBoundingRect Method

Returns a bounding Rectangle that encompasses all the UIElements in the array.
Syntax
'Declaration
 
Public Shared Function GetBoundingRect( _
   ByVal elements() As UIElement, _
   Optional ByVal drop As Boolean _
) As Rectangle
public static Rectangle GetBoundingRect( 
   UIElement[] elements,
   bool drop
)

Parameters

elements
An array of UIElements
drop
True to get the bounds for a drop operation, which will adjust for RightToLeft.

Return Value

A rectangle containing all of the UIElements in the array.
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