共用方式為


Size3D.Empty 屬性

定義

取得值,這個值表示空白 Size3D 結構。

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

屬性值

Size3D 結構的空白執行個體。

範例

下列範例示範如何將 結構設為 Size3D 空白。

// Gets an empty Size3D structure
Size3D size1 = new Size3D(2, 4, 6);

size1 = Size3D.Empty;
// size1 is now empty

// Displaying Results
syntaxString = "size1 = Size3D.Empty;";
resultType = "Size3D";
operationString = "Getting an empty Size3D structure";
ShowResults(size1.ToString(), syntaxString, resultType, operationString);
' Gets an empty Size3D structure
Dim size1 As New Size3D(2, 4, 6)

size1 = Size3D.Empty
' size1 is now empty



' Displaying Results
syntaxString = "size1 = Size3D.Empty"
resultType = "Size3D"
operationString = "Getting an empty Size3D structure"
ShowResults(size1.ToString(), syntaxString, resultType, operationString)

備註

Size3DXYZ 值設定為 0 的結構不是空的。 空 Size3D 結構具有 XYZ 值設定為負無限大。 這是結構可以有負值的唯一 Size3D 時間。

適用於