/// <summary> /// Constructor. /// </summary> /// <param name="owner">A <see cref="T:System.Windows.Forms.Control" /> representing the control that owns the control collection.</param> /// <exception cref="System.ArgumentException">Tried to create a MultiPanelPagesCollection with a non-MultiPanel owner.;owner</exception> /// <exception cref="System.ArgumentNullException">owner</exception> public MultiPanelPagesCollection(Control owner) : base(owner) { owner.ThrowIfNull(nameof(owner), "Tried to create a MultiPanelPagesCollection with a null owner."); m_owner = owner as MultiPanel; if (m_owner == null) { throw new ArgumentException("Tried to create a MultiPanelPagesCollection with a non-MultiPanel owner.", "owner"); } }