System\Windows\Forms\Layout\Containers\SplitContainer.cs (29)
393return (Width >= Panel1MinSize + SplitterWidthInternal + Panel2MinSize);
397return (Height >= Panel1MinSize + SplitterWidthInternal + Panel2MinSize);
619if (value != Panel2MinSize && !_initializing)
657if (value + SplitterWidthInternal > Width - Panel2MinSize)
659value = Width - Panel2MinSize - SplitterWidthInternal;
678if (value + SplitterWidthInternal > Height - Panel2MinSize)
680value = Height - Panel2MinSize - SplitterWidthInternal;
964_splitterDistance = (_splitterDistance + SplitterWidth > Width - Panel2MinSize - _borderSize) ? _splitterDistance - SplitterIncrement : _splitterDistance;
968_splitterDistance = (_splitterDistance + SplitterWidth > Height - Panel2MinSize - _borderSize) ? _splitterDistance - SplitterIncrement : _splitterDistance;
1092x = Math.Max(Math.Min(x, Width - Panel2MinSize), Panel1MinSize);
1097y = Math.Max(Math.Min(y, Height - Panel2MinSize), Panel1MinSize);
1259if (DesignMode && Width != DefaultSize.Width && value + Panel2MinSize + SplitterWidth > Width)
1266if (DesignMode && Height != DefaultSize.Height && value + Panel2MinSize + SplitterWidth > Height)
1290throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel2MinSize), value.ToString()));
1297throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel2MinSize), value));
1317if (DesignMode && value + Panel1MinSize + Panel2MinSize > Width)
1324if (DesignMode && value + Panel1MinSize + Panel2MinSize > Height)
1523return Math.Max(Math.Min(size, Width - Panel2MinSize), Panel1MinSize);
1527return Math.Max(Math.Min(size, Height - Panel2MinSize), Panel1MinSize);
1620Panel2.Size = new Size(Math.Max(Width - _panelSize - SplitterWidthInternal, Panel2MinSize), Height);
1640Panel2.Size = new Size(Math.Max(Width - _splitterDistance - SplitterWidthInternal, Panel2MinSize), Height);
1679Panel2.Size = new Size(Width, Math.Max(Height - panel2Start, Panel2MinSize));
1704Panel2.Size = new Size(Width, Math.Max(Height - panel2Start, Panel2MinSize));
2066if (height < Panel1MinSize + SplitterWidthInternal + Panel2MinSize)
2068height = Panel1MinSize + SplitterWidthInternal + Panel2MinSize;
2075if (width < Panel1MinSize + SplitterWidthInternal + Panel2MinSize)
2077width = Panel1MinSize + SplitterWidthInternal + Panel2MinSize;
2115if (size + SplitterWidthInternal <= Width - Panel2MinSize - _borderSize)
2122if (size + SplitterWidthInternal <= Height - Panel2MinSize - _borderSize)