Thickness Thickness Thickness Thickness Struct

定義

描述矩形周圍框架的粗細。Describes the thickness of a frame around a rectangle. 四個 Double 值分別描述矩形的 LeftTopRightBottom 邊。Four Double values describe the Left, Top, Right, and Bottom sides of the rectangle, respectively.

public value class Thickness
[System.Security.SecurityCritical]
public struct Thickness
type Thickness = struct
Public Structure Thickness
繼承
屬性

備註

這個結構代表 Windows 執行階段 (WinRT) Thickness結構的 .net 投射。This struct represents the .NET projection of the Windows Runtime (WinRT) Thickness struct. 如需詳細資訊, 請參閱 UWP API 參考中的粗細For more information, see Thickness in the UWP API reference.

建構函式

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.

適用於

另請參閱