Source/AdvTree/Drawing/CornerRadius.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Globalization;
using System.ComponentModel.Design.Serialization;
namespace DevComponents.WinForms.Drawing
{
[StructLayout(LayoutKind.Sequential), TypeConverter(typeof(CornerRadiusConverter))]
public struct CornerRadius
#if FRAMEWORK20
: IEquatable<CornerRadius>
#endif
{
#region Private Variables
private int _TopLeft;
private int _topRight;
private int _bottomLeft;
private int _bottomRight;
#endregion
#region Constructor
public CornerRadius(int uniformRadius)
{
this._TopLeft = this._topRight = this._bottomLeft = this._bottomRight = uniformRadius;
}
public CornerRadius(int topLeft, int topRight, int bottomRight, int bottomLeft)
{
this._TopLeft = topLeft;
this._topRight = topRight;
this._bottomRight = bottomRight;
this._bottomLeft = bottomLeft;
}
#endregion
#region Internal Implementation
public override bool Equals(object obj)
{
if (obj is CornerRadius)
{
CornerRadius radius = (CornerRadius)obj;
return (this == radius);
}
return false;
}
public bool Equals(CornerRadius cornerRadius)
{
return (this == cornerRadius);
}
public override int GetHashCode()
{
return (((this._TopLeft.GetHashCode() ^ this._topRight.GetHashCode()) ^ this._bottomLeft.GetHashCode()) ^ this._bottomRight.GetHashCode());
}
public override string ToString()
{
后面还有 198 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。