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
/*
 
 //Michael Spradlin - 05/03/2013 Office 2013 Style Changes
 * Copied from original class of RibbonTabRenderEventArgs just changed what i needed for a ribbon Button.
 * 
 * Please give me credit if you use this code. It's all I ask.
 * 
 * Contact me for more info: mspradlin2010@gmail.com
 * 
 */
 
using System.Drawing;
 
namespace System.Windows.Forms
{
    public sealed class RibbonButtonRenderEventArgs : RibbonRenderEventArgs
    {
        public RibbonButtonRenderEventArgs(Ribbon owner, Graphics g, Rectangle clip, RibbonButton button)
            : base(owner, g, clip)
        {
            Button = button;
        }
 
        /// <summary>
        /// Gets or sets the RibbonButton related to the evennt
        /// </summary>
        public RibbonButton Button { get; set; }
    }
}