tx
2025-04-14 c33f54888d8fb4e1961bca69fe3d01e87fc54be6
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System.Drawing;
 
namespace System.Windows.Forms
{
    public class RibbonTextEventArgs
        : RibbonItemBoundsEventArgs
    {
        #region Fields
 
        #endregion
 
        #region Ctor
 
 
 
        public RibbonTextEventArgs(Ribbon owner, Graphics g, Rectangle clip, RibbonItem item, Rectangle bounds, string text)
            : base(owner, g, clip, item, bounds)
        {
            Text = text;
            Style = FontStyle.Regular;
            Format = new StringFormat();
            Color = Color.Empty;
        }
 
        public RibbonTextEventArgs(Ribbon owner, Graphics g, Rectangle clip, RibbonItem item, Rectangle bounds, string text, FontStyle style)
            : base(owner, g, clip, item, bounds)
        {
            Text = text;
            Style = style;
            Format = new StringFormat();
            Color = Color.Empty;
        }
 
        public RibbonTextEventArgs(Ribbon owner, Graphics g, Rectangle clip, RibbonItem item, Rectangle bounds, string text, StringFormat format)
            : base(owner, g, clip, item, bounds)
        {
            Text = text;
            Style = FontStyle.Regular;
            Format = format;
            Color = Color.Empty;
        }
 
        public RibbonTextEventArgs(Ribbon owner, Graphics g, Rectangle clip, RibbonItem item, Rectangle bounds,
            string text, Color color, FontStyle style, StringFormat format)
            : base(owner, g, clip, item, bounds)
        {
            Text = text;
            Style = style;
            Format = format;
            Color = color;
        }
 
        #endregion
 
        #region Props
 
 
        /// <summary>
        /// Gets or sets the color of the text to render
        /// </summary>
        public Color Color { get; set; }
 
 
        /// <summary>
        /// Gets or sets the text to render
        /// </summary>
        public string Text { get; set; }
 
        /// <summary>
        /// Gets or sets the format of the text
        /// </summary>
        public StringFormat Format { get; set; }
 
        /// <summary>
        /// Gets or sets the font style of the text
        /// </summary>
        public FontStyle Style { get; set; }
 
        #endregion
    }
}