Size3D.IsEmpty Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether this Size3D structure is empty.
public:
property bool IsEmpty { bool get(); };
public bool IsEmpty { get; }
member this.IsEmpty : bool
Public ReadOnly Property IsEmpty As Boolean
true
if the Size3D structure is empty; otherwise, false
. The default is false
.
The following example shows how to check if a Size3D structure is empty.
// Checks if a Size3D structure is empty
// Returns Boolean
Size3D size1 = new Size3D(0, 0, 0);
Boolean isEmpty;
isEmpty = size1.IsEmpty;
// isEmpty is False
// Displaying Results
syntaxString = "isEmpty = size1.IsEmpty;";
resultType = "Boolean";
operationString = "Checking if a Size3D structure is empty";
ShowResults(isEmpty.ToString(), syntaxString, resultType, operationString);
' Checks if a Size3D structure is empty
' Returns Boolean
Dim size1 As New Size3D(0, 0, 0)
Dim isEmpty As Boolean
isEmpty = size1.IsEmpty
' isEmpty is False
' Displaying Results
syntaxString = "isEmpty = size1.IsEmpty"
resultType = "Boolean"
operationString = "Checking if a Size3D structure is empty"
ShowResults(isEmpty.ToString(), syntaxString, resultType, operationString)
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.
Product | Versions |
---|---|
.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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: