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
///
/// Gets or sets the color of the text to render
///
public Color Color { get; set; }
///
/// Gets or sets the text to render
///
public string Text { 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; }
#endregion
}
}