namespace Microsoft.Windows.Forms
|
{
|
public partial class Sprite
|
{
|
private CornerStyle m_RoundCornerStyle = CornerStyle.None;
|
/// <summary>
|
/// 圆角弯曲样式
|
/// </summary>
|
public CornerStyle RoundCornerStyle
|
{
|
get
|
{
|
return this.m_RoundCornerStyle;
|
}
|
set
|
{
|
if (value != this.m_RoundCornerStyle)
|
{
|
this.m_RoundCornerStyle = value;
|
this.Feedback();
|
}
|
}
|
}
|
|
private RoundStyle m_RoundStyle = RoundStyle.None;
|
/// <summary>
|
/// 圆角样式
|
/// </summary>
|
public RoundStyle RoundStyle
|
{
|
get
|
{
|
return this.m_RoundStyle;
|
}
|
set
|
{
|
if (value != this.m_RoundStyle)
|
{
|
this.m_RoundStyle = value;
|
this.Feedback();
|
}
|
}
|
}
|
|
private float m_RoundRadius = 0f;
|
/// <summary>
|
/// 圆角半径
|
/// </summary>
|
public float RoundRadius
|
{
|
get
|
{
|
return this.m_RoundRadius;
|
}
|
set
|
{
|
if (value != this.m_RoundRadius)
|
{
|
this.m_RoundRadius = value < 0f ? 0f : value;
|
this.Feedback();
|
}
|
}
|
}
|
}
|
}
|