RectangleExtensionsIsEmpty Method
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.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static bool IsEmpty(
this Rectangle rect
)
<ExtensionAttribute>
Public Shared Function IsEmpty (
rect As Rectangle
) As Boolean
public:
[ExtensionAttribute]
static bool IsEmpty(
Rectangle rect
)
[<ExtensionAttribute>]
static member IsEmpty :
rect : Rectangle -> bool
- rect Rectangle
- The Rectangle to check.
Boolean>
if the rectangle has zero
Width or
Height; otherwise,
.In Visual Basic and C#, you can call this method as an instance method on any object of type
Rectangle. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).