Source/Editors/InputControlColors.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#if FRAMEWORK20
using System;
using System.Text;
using System.Drawing;
using System.ComponentModel;
namespace DevComponents.Editors
{
/// <summary>
/// Defines the system colors used by the input controls.
/// </summary>
[System.ComponentModel.ToolboxItem(false), System.ComponentModel.DesignTimeVisible(false), TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
public class InputControlColors
{
/// <summary>
/// Occurs when color has changed.
/// </summary>
public event EventHandler ColorChanged;
private Color _Highlight = Color.Empty;
/// <summary>
/// Gets or sets the background color of input item part when part has input focus. Default value is Color.Empty which indicates that system Highlight color is used.
/// </summary>
public Color Highlight
{
get { return _Highlight; }
set
{
if (_Highlight != value)
{
_Highlight = value;
OnColorChanged();
}
}
}
/// <summary>
/// Resets property to its default value. Provided for design-time support.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public void ResetHighlight()
{
Highlight = Color.Empty;
}
/// <summary>
/// Returns whether property should be serialized. Provided for design-time support.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool ShouldSerializeHighlight()
{
return !Highlight.IsEmpty;
}
private Color _HighlightText = Color.Empty;
/// <summary>
/// Gets or sets the text color of input item part when part has input focus. Default value is Color.Empty which indicates that system HighlightText color is used.
/// </summary>
public Color HighlightText
{
后面还有 35 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。