Share via


CornerRadius 结构

定义

包含用于指定圆角半径的方法和属性。

[System.Diagnostics.DebuggerDisplay("TopLeft={TopLeft}, TopRight={TopRight}, BottomLeft={BottomLeft}, BottomRight={BottomRight}")]
[Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.CornerRadiusTypeConverter))]
public struct CornerRadius
type CornerRadius = struct
继承
System.ValueType
CornerRadius
属性
System.Diagnostics.DebuggerDisplayAttribute TypeConverterAttribute

构造函数

CornerRadius(Double)

新建 CornerRadius,使其所有四个圆角都具有相同的半径。

CornerRadius(Double, Double, Double, Double)

新建 CornerRadius,使其四个圆角都具有指定的半径。

属性

BottomLeft

获取左上角的半径。

BottomRight

获取右下角的半径。

TopLeft

获取左上角的半径。

TopRight

获取右上角的半径。

方法

Deconstruct(Double, Double, Double, Double)

包含用于指定圆角半径的方法和属性。

Equals(Object)

将此圆角半径与另一个圆角进行比较。

GetHashCode()

获取圆角半径的哈希代码。

运算符

Equality(CornerRadius, CornerRadius)

比较 leftright 圆角半径值。

Implicit(Double to CornerRadius)

创建并返回新的 CornerRadius,使其所有四个圆角都具有相同的半径。

Inequality(CornerRadius, CornerRadius)

比较 leftright 圆角半径值。

适用于