// *********************************
// 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
{
///
/// Interface that every drawable ribbon element must implement
///
public interface IRibbonElement
{
///
/// Called on every element when its time to draw itself
///
/// Object that is invoking the paint element
/// Paint event data
void OnPaint(Object sender, RibbonElementPaintEventArgs e);
///
/// Gets the size in pixels needed for the element in the specified mode
///
/// Object that sends the measure message
/// Event data
Size MeasureSize(object sender, RibbonElementMeasureSizeEventArgs e);
///
/// Called to make the element aware of its actual bounds on the control
///
void SetBounds(Rectangle bounds);
///
/// Gets the bounds of the item
///
Rectangle Bounds { get; }
///
/// Gets the Ribbon owner of this item.
///
Ribbon Owner { get; }
}
}