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プロパティ値を持ち、Widthのプロパティ値をHeightおよびNegativeInfinityする空の四角形。

注釈

空の四角形を含む数学的計算は避けてください。 XYの両方が無限の値であるため、プロセッサ操作はこれらの操作によって深刻な障害を受けます。 これらの値を含む比較は、アプリケーションのパフォーマンスには影響しません。

適用対象

こちらもご覧ください