Rect.Union Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Union(Point) |
Expands the rectangle represented by the current Rect exactly enough to contain the specified point. |
Union(Rect) |
Expands the rectangle represented by the current Rect exactly enough to contain the specified rectangle. |
Remarks
This struct represents the .NET projection of the Windows Runtime (WinRT) Rect
struct. For more information, see Rect in the UWP API reference.
For more information and examples of this member, see Rect.Union in the .NET Framework API reference. (Examples show WPF usage and might not translate directly to UWP XAML.)
Union(Point)
Expands the rectangle represented by the current Rect exactly enough to contain the specified point.
public:
void Union(Windows::Foundation::Point point);
public void Union (Windows.Foundation.Point point);
member this.Union : Windows.Foundation.Point -> unit
Public Sub Union (point As Point)
Parameters
- point
- Point
The point to include.
Applies to
Union(Rect)
Expands the rectangle represented by the current Rect exactly enough to contain the specified rectangle.
public:
void Union(Windows::Foundation::Rect rect);
public void Union (Windows.Foundation.Rect rect);
member this.Union : Windows.Foundation.Rect -> unit
Public Sub Union (rect As Rect)
Parameters
- rect
- Rect
The rectangle to include.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for