CornerRadius 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 CornerRadius 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| CornerRadius(Double) |
使用每个角或矩形的指定统一半径值初始化类的新实例 CornerRadius 。 |
| CornerRadius(Double, Double, Double, Double) |
使用矩形的每个角的指定半径值初始化类的新实例 CornerRadius 。 |
CornerRadius(Double)
使用每个角或矩形的指定统一半径值初始化类的新实例 CornerRadius 。
public:
CornerRadius(double uniformRadius);
public CornerRadius(double uniformRadius);
new System.Windows.CornerRadius : double -> System.Windows.CornerRadius
Public Sub New (uniformRadius As Double)
参数
- uniformRadius
- Double
应用于矩形每个角的半径值。
适用于
CornerRadius(Double, Double, Double, Double)
使用矩形的每个角的指定半径值初始化类的新实例 CornerRadius 。
public:
CornerRadius(double topLeft, double topRight, double bottomRight, double bottomLeft);
public CornerRadius(double topLeft, double topRight, double bottomRight, double bottomLeft);
new System.Windows.CornerRadius : double * double * double * double -> System.Windows.CornerRadius
Public Sub New (topLeft As Double, topRight As Double, bottomRight As Double, bottomLeft As Double)
参数
- topLeft
- Double
左上角的半径。
- topRight
- Double
右上角的半径。
- bottomRight
- Double
右下角的半径。
- bottomLeft
- Double
左下角的半径。