# Size3D.X 속성

## 정의

X 구조체의 Size3D 값을 가져오거나 설정합니다.Gets or sets the X value of this Size3D structure.

``````public:
property double X { double get(); void set(double value); };``````
``public double X { get; set; }``
``member this.X : double with get, set``
``Public Property X As Double``

#### 속성 값

X 구조체의 Size3D 값입니다.The X value of this Size3D structure. 기본값은 `0`합니다.The default value is `0`.

## 예제

다음 예제에서는 두 가지 경우를 확인 하는 방법을 보여 줍니다 Size3D 구조체가 동일 합니다.The following example shows how to check if two Size3D structures are equal. 또한 값을 할당 하는 방법을 보여 줍니다는 Size3D 구조를 선언할 때 및 구조를 선언한 후 구성 합니다.It also shows how to assign values to a Size3D structure when the structure is being declared and after the structure has been declared.

``````// Checks if two Size3D structures are equal using the static Equals method.
// Returns a Boolean.

// Declaring Size3D structure without initializing x,y,z values
Size3D size1 = new Size3D();

// Declaring Size3D structure and initializing x,y,z values
Size3D size2 = new Size3D(5, 10, 15);
Boolean areEqual;

// Assigning values to size1
size1.X = 2;
size1.Y = 4;
size1.Z = 6;

// checking for equality
areEqual = Size3D.Equals(size1, size2);

// areEqual is False

// Displaying Results
syntaxString = "areEqual = Size3D.Equals(size1, size2);";
resultType = "Boolean";
operationString = "Checking if two Size3D structures are equal";
ShowResults(areEqual.ToString(), syntaxString, resultType, operationString);
``````
``````' Checks if two Size3D structures are equal using the static Equals method.
' Returns a Boolean.

' Declaring Size3D structure without initializing x,y,z values
Dim size1 As New Size3D()

' Declaring Size3D structure and initializing x,y,z values
Dim size2 As New Size3D(5, 10, 15)
Dim areEqual As Boolean

' Assigning values to size1
size1.X = 2
size1.Y = 4
size1.Z = 6

' checking for equality
areEqual = Size3D.Equals(size1, size2)

' areEqual is False

' Displaying Results
syntaxString = "areEqual = Size3D.Equals(size1, size2)"
resultType = "Boolean"
operationString = "Checking if two Size3D structures are equal"
ShowResults(areEqual.ToString(), syntaxString, resultType, operationString)
``````

## 설명

합니다 X, Y, 및 Z 값은 음수가 아닌 여야 합니다.The X, Y, and Z values must be non-negative.

Size3DRect3D 이러한 형식을 사용 하는 WPF 3D 개체 모델에서 설정할 수 있는 속성이 없습니다 때문에 XAML에서 일반적으로 사용 되지 않습니다.Size3D and Rect3D are not typically used in XAML, because no settable properties exist in the WPF 3D object model that use those types.