Source/Rendering/Office2007Renderer.cs
(开头部分) 27KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;
namespace DevComponents.DotNetBar.Rendering
{
/// <summary>
/// Represents Office 2007 Control renderer.
/// </summary>
public class Office2007Renderer : BaseRenderer
{
#region Events
/// <summary>
/// Occurs when color table is changed by setting the ColorTable property on the renderer.
/// </summary>
public event EventHandler ColorTableChanged;
#endregion
#region Private Variables
//private Office12ColorTable m_ColorTable12 = null;
private Office2007ColorTable m_ColorTable = null;
#endregion
#region Constructor
public Office2007Renderer()
{
//m_ColorTable12 = new Office12ColorTable();
m_ColorTable = new Office2007ColorTable();
}
#endregion
#region Properties
/// <summary>
/// Gets or sets color table used by renderer.
/// </summary>
public Office2007ColorTable ColorTable
{
get { return m_ColorTable; }
set
{
m_ColorTable = value;
if (ColorTableChanged != null)
ColorTableChanged(this, new EventArgs());
}
}
#endregion
#region Key Tips Rendering
/// <summary>
/// Draws KeyTip for an object. If you need to provide custom rendering this is the method that you should override in your custom rendered. If you
/// do not want default rendering to occur do not call the base implementation. You can call OnRenderKeyTips method so events can occur.
/// </summary>
/// <param name="e">Provides context information.</param>
public override void DrawKeyTips(KeyTipsRendererEventArgs e)
{
KeyTipsPainter painter = PainterFactory.CreateKeyTipsPainter();
if (painter is IOffice2007Painter)
((IOffice2007Painter)painter).ColorTable = m_ColorTable;
后面还有 551 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。