public static class RectangleExtensions<ExtensionAttribute>
Public NotInheritable Class RectangleExtensions[ExtensionAttribute]
public ref class RectangleExtensions abstract sealed[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type RectangleExtensions = class end| EnsureScreen | Adjusts the specified rectangle to ensure it is positioned within the given screen's working area. |
| FromCenter | Creates a Rectangle with the specified center point and size. |
| GetCenter | Gets the center point of the rectangle. |
| IntersectSafe | Like Intersect(Rectangle, Rectangle), but works with big ranges, and returns Empty if the result would be a practically zero rectangle. As a contrast, the Intersect(Rectangle, Rectangle) method can return a non-Empty rectangle with zero Width or Height. |
| IsEmpty | Gets whether the specified Rectangle has zero Width or Height. Not just faster than the IsEmpty property, but also works better when Intersect returns a practically empty non-default rectangle. |