tangxu
2024-10-24 3024f6d3d1618d8e90082f5aec0cc1bb6fabeea6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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();
                }
            }
        }
    }
}