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;
}
///
/// Gets the Text
///
public string Text { get; set; }
///
/// Gets or sets the color of the text to render
///
public Color Color { get; set; }
///
/// Gets or sets the format of the text
///
public StringFormat Format { get; set; }
///
/// Gets or sets the font style of the text
///
public FontStyle Style { get; set; }
///
/// Gets or sets the font
///
public Font Font { get { return font; } set { font = value; } }
///
/// Gets or sets the tip image
///
public Image TipImage { get; set; }
//public void Dispose()
//{
// Dispose(true);
// GC.SuppressFinalize(this);
//}
//protected virtual void Dispose(bool disposing)
//{
// if (font != null)
// font.Dispose();
//}
}
}