Επεξεργασία

Κοινή χρήση μέσω


Rect.Empty Property

Definition

Gets a special value that represents a rectangle with no position or area.

public:
 static property System::Windows::Rect Empty { System::Windows::Rect get(); };
public static System.Windows.Rect Empty { get; }
static member Empty : System.Windows.Rect
Public Shared ReadOnly Property Empty As Rect

Property Value

The empty rectangle, which has X and Y property values of PositiveInfinity, and has Width and Height property values of NegativeInfinity.

Remarks

Avoid mathematical computations involving empty rectangles. Because both X and Y are infinite values, processor operations are severely impaired by these operations. Comparisons involving these values will not affect application performance.

Applies to

See also