Прочетете на английски Редактиране

Споделяне чрез


Size3D.Empty Property

Definition

Gets a value that represents an empty Size3D structure.

C#
public static System.Windows.Media.Media3D.Size3D Empty { get; }

Property Value

An empty instance of a Size3D structure.

Examples

The following example shows how to make a Size3D structure empty.

C#
// 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);

Remarks

A Size3D structure with X, Y, and Z values set to 0 is not empty. An empty Size3D structure has X, Y, and Z values set to negative infinity. This is the only time a Size3D structure can have negative values.

Applies to

Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10