Demo.WindowsForms/BSE.Windows.Forms/XPander/CustomColors.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.ComponentModel;
namespace BSE.Windows.Forms
{
/// <summary>
/// Base class for the custom colors at a panel or xpanderpanel control.
/// </summary>
/// <remarks>
/// If you use the <see cref="ColorScheme.Custom"/> ColorScheme, this is the base class for the custom colors.
/// </remarks>
/// <copyright>Copyright © 2008 Uwe Eichkorn
/// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
/// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
/// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
/// PURPOSE. IT CAN BE DISTRIBUTED FREE OF CHARGE AS LONG AS THIS HEADER
/// REMAINS UNCHANGED.
/// </copyright>
[TypeConverter(typeof(ExpandableObjectConverter))]
[Description("The colors used in a panel")]
public class CustomColors
{
#region Events
/// <summary>
/// Occurs when the value of the CustomColors property changes.
/// </summary>
[Description("Occurs when the value of the CustomColors property changes.")]
public event EventHandler<EventArgs> CustomColorsChanged;
#endregion
#region FieldsPrivate
private Color m_borderColor = System.Windows.Forms.ProfessionalColors.GripDark;
private Color m_captionCloseIcon = SystemColors.ControlText;
private Color m_captionExpandIcon = SystemColors.ControlText;
private Color m_captionGradientBegin = System.Windows.Forms.ProfessionalColors.ToolStripGradientBegin;
private Color m_captionGradientEnd = System.Windows.Forms.ProfessionalColors.ToolStripGradientEnd;
private Color m_captionGradientMiddle = System.Windows.Forms.ProfessionalColors.ToolStripGradientMiddle;
private Color m_captionText = SystemColors.ControlText;
private Color m_innerBorderColor = System.Windows.Forms.ProfessionalColors.GripLight;
#endregion
#region Properties
/// <summary>
/// Gets or sets the border color of a Panel or XPanderPanel.
/// </summary>
[Description("The border color of a Panel or XPanderPanel.")]
public virtual Color BorderColor
{
get { return this.m_borderColor; }
set
{
if (value.Equals(this.m_borderColor) == false)
{
this.m_borderColor = value;
OnCustomColorsChanged(this, EventArgs.Empty);
}
后面还有 132 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
