internal override Size GetPreferredSizeCore(Size proposedSize)
 {
     if (this.LayoutStyle != ToolStripLayoutStyle.Table)
     {
         return(base.GetPreferredSizeCore(proposedSize));
     }
     if (proposedSize.Width == 1)
     {
         proposedSize.Width = 0x7fffffff;
     }
     if (proposedSize.Height == 1)
     {
         proposedSize.Height = 0x7fffffff;
     }
     if (base.Orientation == Orientation.Horizontal)
     {
         return(ToolStrip.GetPreferredSizeHorizontal(this, proposedSize) + this.Padding.Size);
     }
     return(ToolStrip.GetPreferredSizeVertical(this, proposedSize) + this.Padding.Size);
 }