Size3D.IsEmpty Property
Definition
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
Property Value
true
if the Size3D structure is empty; otherwise, false
. The default is false
.
Examples
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)
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
See also
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET