16 writes to _splitterDistance
System.Windows.Forms (16)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (16)
668
_splitterDistance
= value;
689
_splitterDistance
= value;
954
_splitterDistance
-= SplitterIncrement;
955
_splitterDistance
= (_splitterDistance < Panel1MinSize) ? _splitterDistance + SplitterIncrement : Math.Max(_splitterDistance, _borderSize);
961
_splitterDistance
+= SplitterIncrement;
964
_splitterDistance
= (_splitterDistance + SplitterWidth > Width - Panel2MinSize - _borderSize) ? _splitterDistance - SplitterIncrement : _splitterDistance;
968
_splitterDistance
= (_splitterDistance + SplitterWidth > Height - Panel2MinSize - _borderSize) ? _splitterDistance - SplitterIncrement : _splitterDistance;
1626
_splitterDistance
= Math.Max(Width - _panelSize - SplitterWidthInternal, Panel1MinSize);
1635
_splitterDistance
= Math.Max((int)(Math.Floor(Width / _ratioWidth)), Panel1MinSize);
1686
_splitterDistance
= Math.Max(Height - Panel2.Height - SplitterWidthInternal, Panel1MinSize);
1698
_splitterDistance
= Math.Max((int)(Math.Floor(Height / _ratioHeight)), Panel1MinSize);
1769
_splitterDistance
= (int)Math.Round(_splitterDistance * scale);
2092
_splitterDistance
= GetSplitterDistance(x, y);
2117
_splitterDistance
= size - mod;
2124
_splitterDistance
= size - mod;
2151
_splitterDistance
= SplitterDistanceInternal = _initialSplitterDistance;
39 references to _splitterDistance
System.Windows.Forms (39)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (39)
727
return
_splitterDistance
;
955
_splitterDistance = (
_splitterDistance
< Panel1MinSize) ?
_splitterDistance
+ SplitterIncrement : Math.Max(
_splitterDistance
, _borderSize);
964
_splitterDistance = (
_splitterDistance
+ SplitterWidth > Width - Panel2MinSize - _borderSize) ?
_splitterDistance
- SplitterIncrement :
_splitterDistance
;
968
_splitterDistance = (
_splitterDistance
+ SplitterWidth > Height - Panel2MinSize - _borderSize) ?
_splitterDistance
- SplitterIncrement :
_splitterDistance
;
988
Rectangle r = CalcSplitLine(
_splitterDistance
, 0);
1342
SplitterDistanceInternal =
_splitterDistance
;
1438
DrawSplitHelper(
_splitterDistance
);
1439
_lastDrawSplit =
_splitterDistance
;
1443
DrawSplitHelper(
_splitterDistance
);
1444
_lastDrawSplit =
_splitterDistance
;
1571
_splitterRect.X = ((RightToLeft == RightToLeft.Yes) ? Width -
_splitterDistance
- SplitterWidthInternal : Location.X +
_splitterDistance
);
1627
Panel1.WidthInternal =
_splitterDistance
;
1638
Panel1.WidthInternal =
_splitterDistance
; // Default splitter distance from left or top.
1640
Panel2.Size = new Size(Math.Max(Width -
_splitterDistance
- SplitterWidthInternal, Panel2MinSize), Height);
1687
Panel1.HeightInternal =
_splitterDistance
;
1689
int panel2Start =
_splitterDistance
+ SplitterWidthInternal;
1701
Panel1.HeightInternal =
_splitterDistance
; // Default splitter distance from left or top.
1703
int panel2Start =
_splitterDistance
+ SplitterWidthInternal;
1769
_splitterDistance = (int)Math.Round(
_splitterDistance
* scale);
1770
_splitDistance =
_splitterDistance
;
2093
_initialSplitterDistance =
_splitterDistance
;
2111
if (
_splitterDistance
!= size)
2148
else if (
_splitterDistance
!= _initialSplitterDistance)
2177
Panel1.WidthInternal =
_splitterDistance
; // Default splitter distance from left or top.
2178
Panel2.Size = new Size(Width -
_splitterDistance
- SplitterWidthInternal, Height);
2183
Panel2.Location = new Point(
_splitterDistance
+ SplitterWidthInternal, 0);
2187
Panel1.Location = new Point(Width -
_splitterDistance
, 0);
2214
_ratioWidth = (Width / (double)(
_splitterDistance
) > 0) ? Width / (double)(
_splitterDistance
) : _ratioWidth;
2227
int panel2Start =
_splitterDistance
+ SplitterWidthInternal;
2255
_ratioHeight = (Height / (double)(
_splitterDistance
) > 0) ? Height / (double)(
_splitterDistance
) : _ratioHeight;