// *********************************
// Message from Original Author:
//
// 2008 Jose Menendez Poo
// Please give me credit if you use this code. It's all I ask.
// Contact me for more info: menendezpoo@gmail.com
// *********************************
//
// Original project from http://ribbon.codeplex.com/
// Continue to support and maintain by http://officeribbon.codeplex.com/
using System.Drawing;
namespace System.Windows.Forms
{
///
/// Holds data and tools to draw the element
///
public class RibbonElementPaintEventArgs
: EventArgs
{
/// Rectangle clip
/// Device to draw
/// Size mode to draw
internal RibbonElementPaintEventArgs(Rectangle clip, Graphics graphics, RibbonElementSizeMode mode)
{
Clip = clip;
Graphics = graphics;
Mode = mode;
}
internal RibbonElementPaintEventArgs(Rectangle clip, Graphics graphics, RibbonElementSizeMode mode, Control control)
: this(clip, graphics, mode)
{
Control = control;
}
///
/// Area that element should occupy
///
public Rectangle Clip { get; }
///
/// Gets the Device where to draw
///
public Graphics Graphics { get; }
///
/// Gets the mode to draw the element
///
public RibbonElementSizeMode Mode { get; }
///
/// Gets the control where element is being painted
///
public Control Control { get; }
}
}