Source/Events/ColorPreviewEventArgs.cs
(完整代码) 1KBusing System;
using System.Drawing;
using System.Text;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Defines the event arguments class for ColorPickerDropDown ColorPreview event.
/// </summary>
public class ColorPreviewEventArgs : EventArgs
{
/// <summary>
/// Gets the color that is being previewed.
/// </summary>
public Color Color = Color.Empty;
/// <summary>
/// Gets the ColorItem if available for the color being previewed. This property can be null if there is no ColorItem connected with the color.
/// </summary>
public ColorItem ColorItem = null;
/// <summary>
/// Creates new instance of the object.
/// </summary>
/// <param name="c">Color being previewed.</param>
/// <param name="ci">ColorItem connected with the color.</param>
public ColorPreviewEventArgs(Color c, ColorItem ci)
{
this.Color = c;
this.ColorItem = ci;
}
}
/// <summary>
/// Defines delegate for ColorPreview event.
/// </summary>
public delegate void ColorPreviewEventHandler(object sender, ColorPreviewEventArgs e);
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。