# ThicknessThicknessThicknessThickness Struct

## 定義

``public value class Thickness``
``````[System.Security.SecurityCritical]
public struct Thickness``````
``type Thickness = struct``
``Public Structure Thickness``

ThicknessThicknessThicknessThickness

## 建構函式

 Thickness(Double) Thickness(Double) Thickness(Double) Thickness(Double) 初始化 Thickness 結構，它在每邊都統一指定長度。Initializes a Thickness structure that has the specified uniform length on each side. Thickness(Double, Double, Double, Double) Thickness(Double, Double, Double, Double) Thickness(Double, Double, Double, Double) Thickness(Double, Double, Double, Double) 初始化 Thickness 結構，它在矩形的每邊都套用特定長度 (以 Double 的格式提供)。Initializes a Thickness structure that has specific lengths (supplied as a Double) applied to each side of the rectangle.

## 屬性

 Bottom Bottom Bottom Bottom 取得或設定週框下邊的寬度 (以像素為單位)。Gets or sets the width, in pixels, of the lower side of the bounding rectangle. Left Left Left Left 取得或設定週框左邊的寬度 (以像素為單位)。Gets or sets the width, in pixels, of the left side of the bounding rectangle. Right Right Right Right 取得或設定週框右邊的寬度 (以像素為單位)。Gets or sets the width, in pixels, of the right side of the bounding rectangle. Top Top Top Top 取得或設定週框上邊的寬度 (以像素為單位)。Gets or sets the width, in pixels, of the upper side of the bounding rectangle.

## 方法

 Equals(Object) Equals(Object) Equals(Object) Equals(Object) 比較這個 Thickness 結構與其他 Object 是否相等。Compares this Thickness structure to another Object for equality. Equals(Thickness) Equals(Thickness) Equals(Thickness) Equals(Thickness) 比較這個 Thickness 結構與另一個 Thickness 結構是否相等。Compares this Thickness structure to another Thickness structure for equality. GetHashCode() GetHashCode() GetHashCode() GetHashCode() 傳回結構的雜湊碼。Returns the hash code of the struct. ToString() ToString() ToString() ToString() 傳回 Thickness 結構的字串表示。Returns the string representation of the Thickness structure.

## 運算子

 Equality(Thickness, Thickness) Equality(Thickness, Thickness) Equality(Thickness, Thickness) Equality(Thickness, Thickness) 比較兩個 Thickness 結構的值是否相等。Compares the value of two Thickness structs for equality. Inequality(Thickness, Thickness) Inequality(Thickness, Thickness) Inequality(Thickness, Thickness) Inequality(Thickness, Thickness) 比較兩個 Thickness 結構是否不相等。Compares two Thickness structs for inequality.