Rect.Empty 屬性

定義

取得特殊值,這個值表示沒有位置或區域的矩形。

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

屬性值

空白矩形 (XY 屬性值為 PositiveInfinity 而且 WidthHeight 屬性值為 NegativeInfinity)。

備註

避免涉及空白矩形的數學計算。 X由於 和 Y 都是無限值,因此這些作業會嚴重受損處理器作業。 涉及這些值的比較不會影響應用程式效能。

適用於

另請參閱