Size3D.IsEmpty 속성

정의

Size3D 구조체가 비어 있는지 여부를 나타내는 값을 가져옵니다.

public:
 property bool IsEmpty { bool get(); };
public bool IsEmpty { get; }
member this.IsEmpty : bool
Public ReadOnly Property IsEmpty As Boolean

속성 값

Boolean

Size3D 구조체가 비어 있으면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

예제

다음 예제에서는 구조체가 Size3D 비어 있는지 확인하는 방법을 보여줍니다.

 // 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)

설명

YZ 값이 Size3D 0으로 X설정된 구조체는 비어 있지 않습니다. 빈 Size3D 구조체에는 X음의 Y무한대로 설정된 값이 있습니다 Z . 구조체에 음수 값이 있을 수 있는 Size3D 유일한 시간입니다.

적용 대상

추가 정보