Source/Editors/DateTimeAdv/DayPaintEventArgs.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#if FRAMEWORK20
using System;
using System.Text;
using System.Drawing;
using DevComponents.DotNetBar;
namespace DevComponents.Editors.DateTimeAdv
{
/// <summary>
/// Provides data for DayLabel painting events.
/// </summary>
public class DayPaintEventArgs : EventArgs
{
/// <summary>
/// Gets the graphics canvas for rendering.
/// </summary>
public readonly Graphics Graphics;
/// <summary>
/// Gets or sets which parts of the item will be drawn by the system. You can set this to None to completely disable system rendering.
/// </summary>
public eDayPaintParts RenderParts = eDayPaintParts.All;
internal DayLabel _Item = null;
internal ItemPaintArgs _ItemPaintArgs = null;
/// <summary>
/// Initializes a new instance of the DayPaintEventArgs class.
/// </summary>
/// <param name="graphics">Reference to Graphics canvas.</param>
/// <param name="item">Reference to item being rendered.</param>
public DayPaintEventArgs(ItemPaintArgs p, DayLabel item)
{
Graphics = p.Graphics;
_ItemPaintArgs = p;
_Item = item;
}
/// <summary>
/// Renders the background of the item.
/// </summary>
public void PaintBackground()
{
_Item.PaintBackground(_ItemPaintArgs);
}
/// <summary>
/// Renders the item text.
/// </summary>
public void PaintText()
{
_Item.PaintText(_ItemPaintArgs, null, Color.Empty, _Item.TextAlign);
}
/// <summary>
/// Renders the item text.
/// </summary>
public void PaintText(Color textColor)
{
_Item.PaintText(_ItemPaintArgs, null, textColor, _Item.TextAlign);
后面还有 80 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。