buttondesigner.cs
来自「按钮的个性化」· CS 代码 · 共 50 行
CS
50 行
//
// AquaButtonDesigner.cs by David Peckham
///
/// by Dave Peckham
/// Irvine, California
/// August 20, 2002
///
// Remove a few properties that our button doesn't support (yet).
//
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
namespace Wildgrape.Aqua.Controls
{
public class ButtonDesigner : System.Windows.Forms.Design.ControlDesigner {
public ButtonDesigner()
{
}
//Overrides
/// <summary>
/// Remove Button and Control properties that are
/// not supported by the Aqua Button
/// </summary>
/// <param name="Properties"></param>
protected override void PostFilterProperties( IDictionary Properties )
{
Properties.Remove( "AllowDrop" );
Properties.Remove( "BackColor" );
Properties.Remove( "BackgroundImage" );
Properties.Remove( "ContextMenu" );
Properties.Remove( "FlatStyle" );
Properties.Remove( "ForeColor" );
Properties.Remove( "Image" );
Properties.Remove( "ImageAlign" );
Properties.Remove( "ImageIndex" );
Properties.Remove( "ImageList" );
Properties.Remove( "Size" );
Properties.Remove( "TextAlign" );
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?