1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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();
- }
- }
- }
- }
- }
|