CornerRadius 结构

定义

描述圆角的特征,例如可以应用于 BorderDescribes the characteristics of a rounded corner, such as can be applied to a Border.

public value class CornerRadius
public struct CornerRadius
[System.Security.SecurityCritical]
public struct CornerRadius
type CornerRadius = struct
Public Structure CornerRadius
继承
CornerRadius
属性

注解

此结构表示 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 结构,并对其所有角应用相同的统一半径。Initializes a new CornerRadius structure, applying the same uniform radius to all its corners.

CornerRadius(Double, Double, Double, Double)

初始化 CornerRadius 结构的新实例,将特定的半径值应用于它的角。Initializes a new instance of the CornerRadius struct, applying specific radius values to its corners.

属性

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

获取或设置应用了 CornerRadius 的对象右下角的圆角半径(以像素为单位)。Gets or sets the radius of rounding, in pixels, of the bottom right corner of the object where a CornerRadius is applied.

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

获取或设置应用了 CornerRadius 的对象右上角的圆角半径(以像素为单位)。Gets or sets the radius of rounding, in pixels, of the top right corner of the object where a CornerRadius is applied.

方法

Equals(CornerRadius)

比较此 CornerRadius 结构与另一个 CornerRadius 结构是否相等。Compares this CornerRadius struct to another CornerRadius structure for equality.

Equals(Object)

比较此 CornerRadius 结构与另一个对象是否相等。Compares this CornerRadius struct to another object for equality.

GetHashCode()

返回结构的哈希代码。Returns the hash code of the structure.

ToString()

返回 CornerRadius 结构的字符串表示形式。Returns the string representation of the CornerRadius structure.

运算符

Equality(CornerRadius, CornerRadius)

比较两个 CornerRadius 结构的值是否相等。Compares the value of two CornerRadius structs for equality.

Inequality(CornerRadius, CornerRadius)

比较两个 CornerRadius 结构是否不相等。Compares two CornerRadius structs for inequality.

适用于

另请参阅