15 writes to splitterDistance
System.Windows.Forms (15)
winforms\Managed\System\WinForms\SplitContainer.cs (15)
816
splitterDistance
= value;
835
splitterDistance
= value;
1152
splitterDistance
-= SplitterIncrement;
1153
splitterDistance
= (splitterDistance < Panel1MinSize) ? splitterDistance + SplitterIncrement : Math.Max(splitterDistance, BORDERSIZE);
1157
splitterDistance
+= SplitterIncrement;
1159
splitterDistance
= (splitterDistance + SplitterWidth > Width - Panel2MinSize -BORDERSIZE) ? splitterDistance - SplitterIncrement : splitterDistance;
1162
splitterDistance
= (splitterDistance + SplitterWidth > Height - Panel2MinSize - BORDERSIZE) ? splitterDistance - SplitterIncrement : splitterDistance;
1776
splitterDistance
= Math.Max(Width - panelSize - SplitterWidthInternal, Panel1MinSize);
1782
splitterDistance
= Math.Max((int)(Math.Floor(this.Width / ratioWidth)), Panel1MinSize);
1825
splitterDistance
= Math.Max(Height - Panel2.Height - SplitterWidthInternal, Panel1MinSize);
1835
splitterDistance
= Math.Max((int)(Math.Floor(this.Height / ratioHeight )), Panel1MinSize);
2167
splitterDistance
= GetSplitterDistance(x, y);
2207
splitterDistance
= size - mod;
2214
splitterDistance
= size - mod;
2240
splitterDistance
= SplitterDistanceInternal = initialSplitterDistance;
37 references to splitterDistance
System.Windows.Forms (37)
winforms\Managed\System\WinForms\SplitContainer.cs (37)
866
return
splitterDistance
;
1153
splitterDistance = (
splitterDistance
< Panel1MinSize) ?
splitterDistance
+ SplitterIncrement : Math.Max(
splitterDistance
, BORDERSIZE);
1159
splitterDistance = (
splitterDistance
+ SplitterWidth > Width - Panel2MinSize -BORDERSIZE) ?
splitterDistance
- SplitterIncrement :
splitterDistance
;
1162
splitterDistance = (
splitterDistance
+ SplitterWidth > Height - Panel2MinSize - BORDERSIZE) ?
splitterDistance
- SplitterIncrement :
splitterDistance
;
1179
Rectangle r = CalcSplitLine(
splitterDistance
, 0);
1518
SplitterDistanceInternal =
splitterDistance
;
1598
DrawSplitHelper(
splitterDistance
);
1599
lastDrawSplit =
splitterDistance
;
1602
DrawSplitHelper(
splitterDistance
);
1603
lastDrawSplit =
splitterDistance
;
1726
splitterRect.X = ((RightToLeft == RightToLeft.Yes) ? this.Width -
splitterDistance
- SplitterWidthInternal : this.Location.X +
splitterDistance
);
1777
panel1.WidthInternal =
splitterDistance
;
1784
panel1.WidthInternal =
splitterDistance
; //Default splitter distance from left or top.
1786
panel2.Size = new Size(Math.Max(Width -
splitterDistance
- SplitterWidthInternal, Panel2MinSize), Height);
1826
panel1.HeightInternal =
splitterDistance
;
1828
int panel2Start =
splitterDistance
+ SplitterWidthInternal;
1837
panel1.HeightInternal =
splitterDistance
; //Default splitter distance from left or top.
1839
int panel2Start =
splitterDistance
+ SplitterWidthInternal;
2168
initialSplitterDistance =
splitterDistance
;
2202
if (
splitterDistance
!= size) {
2238
else if (
splitterDistance
!= initialSplitterDistance) {
2265
panel1.WidthInternal =
splitterDistance
; //Default splitter distance from left or top.
2266
panel2.Size = new Size(Width -
splitterDistance
- SplitterWidthInternal, Height);
2270
panel2.Location = new Point(
splitterDistance
+ SplitterWidthInternal, 0);
2273
panel1.Location = new Point(Width -
splitterDistance
, 0);
2297
ratioWidth = ((double)(this.Width) / (double)(
splitterDistance
) > 0) ? (double)(this.Width) / (double)(
splitterDistance
) : ratioWidth;
2308
int panel2Start =
splitterDistance
+ SplitterWidthInternal;
2332
ratioHeight = ((double)(this.Height) / (double)(
splitterDistance
) > 0) ? (double)(this.Height) / (double)(
splitterDistance
) : ratioHeight;