WinFormsPopupAlerts/CornerRadius.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
namespace WinFormsPopupAlerts
{
/// <summary>
/// Represents the radii of a rectangle's corners.
/// </summary>
[TypeConverter(typeof(CornerRadiusConverter))]
public class CornerRadius
{
private int bottomLeft;
private int bottomRight;
private int topLeft;
private int topRight;
public CornerRadius()
{
}
public CornerRadius(int topLeft, int topRight, int bottomLeft, int bottomRight)
: this()
{
this.topLeft = topLeft;
this.topRight = topRight;
this.bottomRight = bottomRight;
this.bottomLeft = bottomLeft;
}
public CornerRadius(int radius)
: this(radius, radius, radius, radius)
{
}
/// <summary>
/// Gets or sets the radius of the top-right corner.
/// </summary>
public int TopRight
{
get { return topRight; }
set { topRight = value; }
}
/// <summary>
/// Gets or sets the radius of the top-left corner.
/// </summary>
public int TopLeft
{
get { return topLeft; }
set { topLeft = value; }
}
/// <summary>
/// Gets or sets the radius of the bottom-right corner.
/// </summary>
public int BottomRight
{
get { return bottomRight; }
后面还有 18 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。