CornerRadius CornerRadius CornerRadius CornerRadius Struct

定義

描述圓角的特性,如此便可套用到 BorderDescribes the characteristics of a rounded corner, such as can be applied to a Border.

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

備註

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

建構函式

CornerRadius(Double) CornerRadius(Double) CornerRadius(Double) CornerRadius(Double)

將相同的統一半徑套用到所有角,藉此初始化新的 CornerRadius 結構。Initializes a new CornerRadius structure, applying the same uniform radius to all its corners.

CornerRadius(Double, Double, Double, Double) CornerRadius(Double, Double, Double, Double) CornerRadius(Double, Double, Double, Double) CornerRadius(Double, Double, Double, Double)

初始化 CornerRadius 結構的新執行個體,並將特定的半徑值套用到其邊角。Initializes a new instance of the CornerRadius struct, applying specific radius values to its corners.

屬性

BottomLeft BottomLeft BottomLeft BottomLeft

取得或設定物件左下角邊角 (CornerRadius 套用其中) 的圓弧半徑,以像素為單位。Gets or sets the radius of rounding, in pixels, of the bottom left corner of the object where a CornerRadius is applied.

BottomRight BottomRight BottomRight BottomRight

取得或設定物件右下角邊角 (CornerRadius 套用其中) 的圓弧半徑,以像素為單位。Gets or sets the radius of rounding, in pixels, of the bottom right corner of the object where a CornerRadius is applied.

TopLeft TopLeft TopLeft TopLeft

取得或設定物件左上角邊角 (CornerRadius 套用其中) 的圓弧半徑,以像素為單位。Gets or sets the radius of rounding, in pixels, of the top left corner of the object where a CornerRadius is applied.

TopRight TopRight TopRight TopRight

取得或設定物件右下角邊角 (CornerRadius 套用其中) 的圓弧半徑,以像素為單位。Gets or sets the radius of rounding, in pixels, of the top right corner of the object where a CornerRadius is applied.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

比較這個 CornerRadius 結構與另一個物件是否相等。Compares this CornerRadius struct to another object for equality.

Equals(CornerRadius) Equals(CornerRadius) Equals(CornerRadius) Equals(CornerRadius)

比較這個 CornerRadius 結構與另一個 CornerRadius 結構是否相等。Compares this CornerRadius struct to another CornerRadius structure for equality.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

傳回結構的雜湊碼。Returns the hash code of the structure.

ToString() ToString() ToString() ToString()

傳回 CornerRadius 結構的字串表示。Returns the string representation of the CornerRadius structure.

運算子

Equality(CornerRadius, CornerRadius) Equality(CornerRadius, CornerRadius) Equality(CornerRadius, CornerRadius) Equality(CornerRadius, CornerRadius)

比較兩個 CornerRadius 結構的值是否相等。Compares the value of two CornerRadius structs for equality.

Inequality(CornerRadius, CornerRadius) Inequality(CornerRadius, CornerRadius) Inequality(CornerRadius, CornerRadius) Inequality(CornerRadius, CornerRadius)

比較兩個 CornerRadius 結構是否不相等。Compares two CornerRadius structs for inequality.

適用於

另請參閱