tangxu
2024-10-14 6cd995b71dfc74d4d96347d0bc535fddf36fa9df
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
using System.Drawing;
 
namespace System.Windows.Forms
{
    public class RibbonToolTipRenderEventArgs : RibbonRenderEventArgs //, IDisposable
    {
        private Font font = new Font("Arial", 8);
 
        public RibbonToolTipRenderEventArgs(Ribbon owner, Graphics g, Rectangle clip, string text)
            : base(owner, g, clip)
        {
            Text = text;
        }
 
        public RibbonToolTipRenderEventArgs(Ribbon owner, Graphics g, Rectangle clip, string Text, Image tipImage)
            : base(owner, g, clip)
        {
            this.Text = Text;
            TipImage = tipImage;
        }
 
        public RibbonToolTipRenderEventArgs(Ribbon owner, Graphics g, Rectangle clip, string Text, Image tipImage, Color color, FontStyle style, StringFormat format, Font font)
            : base(owner, g, clip)
        {
            this.Text = Text;
            Color = Color;
            Style = style;
            Format = format;
            TipImage = tipImage;
            Font = font;
        }
 
        /// <summary>
        /// Gets the Text
        /// </summary>
        public string Text { get; set; }
 
        /// <summary>
        /// Gets or sets the color of the text to render
        /// </summary>
        public Color Color { 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; }
 
        /// <summary>
        /// Gets or sets the font
        /// </summary>
        public Font Font { get { return font; } set { font = value; } }
 
        /// <summary>
        /// Gets or sets the tip image
        /// </summary>
        public Image TipImage { get; set; }
 
        //public void Dispose()
        //{
        //    Dispose(true);
        //    GC.SuppressFinalize(this);
        //}
 
        //protected virtual void Dispose(bool disposing)
        //{
        //    if (font != null)
        //        font.Dispose();
        //}
    }
}