コード例 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="tabStripItem">Associated SuperTabStripItem</param>
        public SuperTabControlBox(SuperTabStripItem tabStripItem)
        {
            _TabStripItem = tabStripItem;

            MouseDownCapture = true;
            MouseUpNotification = true;

            Style = eDotNetBarStyle.Office2007;

            _MenuBox = new SuperTabMenuBox(this);
            _CloseBox = new SuperTabCloseBox(this);

            _MenuBox.Visible = true;
            _CloseBox.Visible = false;

            SetParent(tabStripItem);
            SetIsContainer(true);

            SubItems.Add(_MenuBox);
            SubItems.Add(_CloseBox);
        }
コード例 #2
0
        /// <summary>
        /// Returns copy of the item.
        /// </summary>
        public override BaseItem Copy()
        {
            SuperTabMenuBox objCopy = new SuperTabMenuBox(_ControlBox);
            CopyToItem(objCopy);

            return (objCopy);
        }