public RibbonStrip() { this.SetStyle(ControlStyles.StandardDoubleClick, true); m_StripContainer = new RibbonStripContainerItem(this); m_StripContainer.GlobalItem = false; m_StripContainer.ContainerControl = this; m_StripContainer.Displayed = true; m_StripContainer.SetOwner(this); m_StripContainer.Style = eDotNetBarStyle.Office2003; this.SetBaseItemContainer(m_StripContainer); this.ColorScheme.Style = eDotNetBarStyle.Office2003; this.AutoSize = true; m_Groups = new RibbonTabItemGroupCollection(); m_Groups.Owner = this; // Setup system caption item m_StripContainer.SystemCaptionItem.Click += new EventHandler(SystemCaptionClick); }
/// <summary> /// Returns copy of GenericItemContainer item /// </summary> public override BaseItem Copy() { RibbonStripContainerItem objCopy = new RibbonStripContainerItem(m_RibbonStrip); this.CopyToItem(objCopy); return objCopy; }