painttreecolumn.cs

来自「破解的飞信源代码」· CS 代码 · 共 63 行

CS
63
字号
namespace Imps.Client.Pc.BizControls
{
    using Imps.Utils;
    using System;
    using System.Drawing;
    using System.Windows.Forms;

    public class PaintTreeColumn
    {
        private static Brush _columnBGColor = SystemBrushes.Control;
        private static Color _columnColor = SystemColors.ControlText;
        private static Font _columnFont = SystemFonts.get_DefaultFont();
        private bool _visible;
        public bool bDrawRectangle;
        public bool bFixLen;
        public bool bHoverRectangle;
        public int Column = -1;
        public Brush ColumnBGColor;
        public Color ColumnColor;
        public Font ColumnFont;
        public Rectangle ColumnRec;
        public string ColumnText = string.Empty;
        public PaintTreeColumnType ColumnType;
        public bool Enable;
        public int ident;
        public AmigoImage image;
        public System.Windows.Forms.ImageList ImageList;
        public int ImageListStatus;
        public bool needAdjustRectTop;

        public PaintTreeColumn()
        {
            this.ColumnText = "";
            this.ColumnFont = _columnFont;
            this.ColumnType = PaintTreeColumnType.None;
            this.ColumnColor = _columnColor;
            this.ColumnBGColor = _columnBGColor;
            this.ColumnRec = new Rectangle(0, 0, 0, 0);
            this.bFixLen = false;
            this.image = null;
            this.bDrawRectangle = true;
            this.bHoverRectangle = false;
            this.needAdjustRectTop = false;
            this.ident = 1;
            this.Enable = true;
            this._visible = true;
        }

        public bool Visible
        {
            get
            {
                return this._visible;
            }
            set
            {
                this._visible = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?