// *********************************
// 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 measure the size
///
public class RibbonElementMeasureSizeEventArgs
: EventArgs
{
///
/// Creates a new RibbonElementMeasureSizeEventArgs object
///
/// Device info to draw and measure
/// Size mode to measure
internal RibbonElementMeasureSizeEventArgs(Graphics graphics, RibbonElementSizeMode sizeMode)
{
Graphics = graphics;
SizeMode = sizeMode;
}
///
/// Gets the size mode to measure
///
public RibbonElementSizeMode SizeMode { get; }
///
/// Gets the device to measure objects
///
public Graphics Graphics { get; }
}
}