⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xtabpage.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Pc.XControls
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    [ToolboxItem(false), Designer(typeof(XTabContorlDesigner))]
    public class XTabPage : ContainerControl
    {
        private int _displayIndex;
        private bool _hided = false;
        private System.Drawing.Image _image;
        private int _imageIndex = -1;
        private string _imageKey = string.Empty;
        private bool _selected = false;
        private Rectangle _tabRectangle = Rectangle.Empty;
        private string _toolTipText = string.Empty;

        public XTabPage()
        {
            base.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
        }

        protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
        {
            XTabControl control = base.Parent as XTabControl;
            if (control != null)
            {
                Rectangle xTabPageRectangle = control.XTabPageRectangle;
                int num = xTabPageRectangle.X;
                int num2 = xTabPageRectangle.Y + (2 * control.BorderWidth);
                int num3 = xTabPageRectangle.Width - control.BorderWidth;
                int num4 = xTabPageRectangle.Height - (2 * control.BorderWidth);
                base.SetBoundsCore(num, num2, num3, num4, (specified == BoundsSpecified.None) ? BoundsSpecified.None : BoundsSpecified.All);
            }
            else
            {
                base.SetBoundsCore(x, y, width, height, specified);
            }
        }

        public override string ToString()
        {
            return string.Format("XTabPage: {0}", this.Text);
        }

        public override Color BackColor
        {
            get
            {
                return Color.Transparent;
            }
            set
            {
                base.BackColor = value;
            }
        }

        public int DisplayIndex
        {
            get
            {
                return this._displayIndex;
            }
            set
            {
                this._displayIndex = value;
            }
        }

        public bool Hided
        {
            get
            {
                return this._hided;
            }
            set
            {
                if (value)
                {
                    this.TabRectangle = Rectangle.Empty;
                }
                this._hided = value;
            }
        }

        public System.Drawing.Image Image
        {
            get
            {
                return this._image;
            }
            set
            {
                this._image = value;
            }
        }

        public int ImageIndex
        {
            get
            {
                return this._imageIndex;
            }
            set
            {
                this._imageIndex = value;
            }
        }

        public string ImageKey
        {
            get
            {
                return this._imageKey;
            }
            set
            {
                this._imageKey = value;
            }
        }

        public bool Selected
        {
            get
            {
                return this._selected;
            }
            set
            {
                this._selected = value;
            }
        }

        public Rectangle TabRectangle
        {
            get
            {
                return this._tabRectangle;
            }
            set
            {
                this._tabRectangle = value;
            }
        }

        public string ToolTipText
        {
            get
            {
                return this._toolTipText;
            }
            set
            {
                this._toolTipText = value;
            }
        }
    }
}

⌨️ 快捷键说明

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