Demo.WindowsForms/BSE.Windows.Forms/XPander/PanelColorsOffice.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace BSE.Windows.Forms
{
/// <summary>
/// Baseclass for a office2007 styled colortable.
/// </summary>
/// <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>
public class PanelColorsOffice : PanelColors
{
#region Properties
/// <summary>
/// Gets the associated PanelStyle for the XPanderControls
/// </summary>
public override PanelStyle PanelStyle
{
get { return PanelStyle.Office2007; }
}
#endregion
#region MethodsPublic
/// <summary>
/// Initialize a new instance of the PanelColorsOffice class.
/// </summary>
public PanelColorsOffice()
: base()
{
}
/// <summary>
/// Initialize a new instance of the PanelColorsOffice class.
/// </summary>
/// <param name="basePanel">Base class for the panel or xpanderpanel control.</param>
public PanelColorsOffice(BasePanel basePanel)
: base(basePanel)
{
}
#endregion
#region MethodsProtected
/// <summary>
/// Initialize a color Dictionary with defined Office2007 colors
/// </summary>
/// <param name="rgbTable">Dictionary with defined colors</param>
protected override void InitColors(Dictionary<KnownColors, System.Drawing.Color> rgbTable)
{
base.InitColors(rgbTable);
rgbTable[KnownColors.PanelCaptionSelectedGradientBegin] = Color.FromArgb(255, 255, 220);
rgbTable[KnownColors.PanelCaptionSelectedGradientEnd] = Color.FromArgb(247, 193, 94);
rgbTable[KnownColors.XPanderPanelCheckedCaptionBegin] = Color.FromArgb(255, 217, 170);
rgbTable[KnownColors.XPanderPanelCheckedCaptionEnd] = Color.FromArgb(254, 225, 122);
rgbTable[KnownColors.XPanderPanelCheckedCaptionMiddle] = Color.FromArgb(255, 171, 63);
后面还有 11 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
