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 可以具有负值的时间。

适用于