Пример #1
0
        /// <summary>
        /// Creates a new deep copy of the current collection.
        /// </summary>
        /// <returns>A new object that is a deep copy of this instance.</returns>
        public override object Clone()
        {
            TabItemCollection copy = (TabItemCollection)base.Clone();

            copy._Parent  = this._Parent;
            copy._NumTabs = this._NumTabs;

            return(copy);
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of a TabStrip.
 /// </summary>
 public TabStrip() : base()
 {
     _Items = new TabItemCollection(this);
     _CachedSelectedIndex = NotSet;
     _OldMultiPageIndex   = -1;
     _TabDefaultStyle     = new CssCollection();
     _TabHoverStyle       = new CssCollection();
     _TabSelectedStyle    = new CssCollection();
     _SepDefaultStyle     = new CssCollection();
     _SepHoverStyle       = new CssCollection();
     _SepSelectedStyle    = new CssCollection();
 }