2 writes to Data
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.LayoutData.cs (1)
49
Data
= src.Data;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
4602
newLayout.
Data
= insideLeft;
132 references to Data
System.Windows.Forms (132)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (7)
2462
int displayWidth = _layout.
Data
.Width;
2542
int displayHeight = _layout.
Data
.Height;
2675
int widthNotVisible = Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - _layout.
Data
.Width;
2698
Rectangle rectTmp = _layout.
Data
;
2797
if (value > 0 && (Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - _layout.
Data
.Width) <= 0)
3811
Invalidate(Rectangle.Union(_layout.
Data
, _layout.ColumnHeaders));
3864
Invalidate(_layout.
Data
);
System\Windows\Forms\Controls\DataGridView\DataGridView.LayoutData.cs (2)
49
Data = src.
Data
;
64
Data = {{
Data
}}
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (114)
522
int displayHeight = _layout.
Data
.Height;
569
if (Columns.GetColumnsWidth(DataGridViewElementStates.Visible) > _layout.
Data
.Width)
577
int availableWidth = _layout.
Data
.Width; // Width available for auto-filled columns
623
int maximumPossibleWidth = _layout.
Data
.Width - imposedWidthSum;
777
int maximumPossibleWidth = _layout.
Data
.Width - imposedWidthSum;
959
Debug.Assert(_layout.
Data
.Width == _layout.Inside.Width - _layout.RowHeaders.Width - (SingleVerticalBorderAdded ? 1 : 0));
960
int availableWidth = _layout.
Data
.Width - imposedWidthSum;
973
&& _layout.
Data
.Height > totalVisibleFrozenHeight
974
&& SystemInformation.VerticalScrollBarWidth <= _layout.
Data
.Width)
1354
int displayHeight = _layout.
Data
.Height;
2102
int displayHeight = _layout.
Data
.Height, cy = 0;
2289
int displayHeight = _layout.
Data
.Height, cy = 0;
2533
Rectangle clip = Rectangle.Union(_layout.ColumnHeaders, _layout.
Data
);
2568
cursorClip.Width = Math.Min(frozenWidth, _layout.
Data
.Width);
2577
else if (_layout.
Data
.Width > frozenWidth + scrollingWidth)
2579
cursorClip.X += _layout.
Data
.Width - frozenWidth - scrollingWidth;
2582
cursorClip.Width = Math.Min(scrollingWidth, _layout.
Data
.Width);
2639
Rectangle clip = Rectangle.Union(_layout.ColumnHeaders, _layout.
Data
);
2643
clip.X = _layout.
Data
.X - _mouseBarOffset - 1;
2644
clip.Width = leftEdge - Columns[columnIndex].MinimumThickness - _layout.
Data
.X + 3;
2655
clip.Width = _layout.
Data
.Right - leftEdge - 1;
2852
Rectangle clip = Rectangle.Union(_layout.RowHeaders, _layout.
Data
);
2887
Rectangle clip = Rectangle.Union(_layout.RowHeaders, _layout.
Data
);
2890
clip.Height = _layout.
Data
.Y + _layout.
Data
.Height - topEdge - 1;
3126
Rectangle inside = _layout.
Data
;
3147
Rectangle inside = _layout.
Data
;
4340
if (Columns.GetColumnsWidth(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) >= _layout.
Data
.Width)
4398
int displayHeight = _layout.
Data
.Height - totalVisibleFrozenHeight;
4605
Debug.Assert(newLayout.
Data
.X >= 0);
4606
Debug.Assert(newLayout.
Data
.Y >= 0);
4607
Debug.Assert(newLayout.
Data
.Width >= 0);
4608
Debug.Assert(newLayout.
Data
.Height >= 0);
4678
_vertScrollBar.LargeChange = _layout.
Data
.Height - totalVisibleFrozenHeight;
4699
int displayWidth = _layout.
Data
.Width, cx = 0;
4902
int displayHeight = _layout.
Data
.Height;
5677
int cxMax = _layout.
Data
.Width, cx = 0;
6217
int y = Math.Min(e.Y + _mouseBarOffset, _layout.
Data
.Bottom - 1);
6281
newX = Math.Max(x + _mouseBarOffset, _layout.
Data
.X);
6286
newX = Math.Min(x + _mouseBarOffset, _layout.
Data
.Right - 1);
6472
x = Math.Max(e.X + _mouseBarOffset, _layout.
Data
.Left - 1);
6477
x = Math.Min(e.X + _mouseBarOffset, _layout.
Data
.Right - 1);
6504
int y = Math.Min(e.Y + _mouseBarOffset, _layout.
Data
.Bottom - 1);
6574
int displayHeight = _layout.
Data
.Height;
8426
Rectangle data = _layout.
Data
;
8565
Rectangle data = _layout.
Data
;
8708
x = _layout.
Data
.Right - 1;
8712
x = _layout.
Data
.X;
8826
Rectangle rectScrollingArea = _layout.
Data
;
8831
int emptyBackgroundWidth = Math.Max(0, _layout.
Data
.Width - Columns.GetColumnsWidth(DataGridViewElementStates.Visible));
8832
int emptyBackgroundHeight = Math.Max(0, _layout.
Data
.Height - frozenVisibleRowsHeight - trailingScrollingRowsHeight);
9112
if (mouseY < _layout.
Data
.Top)
9114
mouseY = _layout.
Data
.Top + 1;
9177
if (!RightToLeftInternal && mouseX < _layout.
Data
.Left)
9179
mouseX = _layout.
Data
.Left + 1;
9182
else if (RightToLeftInternal && mouseX > _layout.
Data
.Right)
9184
mouseX = _layout.
Data
.Right - 1;
9339
Rectangle data = _layout.
Data
;
9417
Rectangle data = _layout.
Data
;
9508
int y = _layout.
Data
.Y;
9849
if (_layout.
Data
.Contains(x, y))
10245
Invalidate(_layout.
Data
);
10313
data = _layout.
Data
;
10586
&& totalVisibleWidth > _layout.
Data
.Width
10587
&& totalVisibleFrozenWidth < _layout.
Data
.Width
10588
&& horizScrollBarHeight <= _layout.
Data
.Height)
10590
int oldDataHeight = _layout.
Data
.Height;
10591
_layout.
Data
.Height -= horizScrollBarHeight;
10592
Debug.Assert(_layout.
Data
.Height >= 0);
10594
if (totalVisibleWidth - _layout.
Data
.Width <= vertScrollBarWidth
10595
|| _layout.
Data
.Width - totalVisibleFrozenWidth <= vertScrollBarWidth)
10604
needHorizScrollbar = totalVisibleFrozenWidth < _layout.
Data
.Width - vertScrollBarWidth;
10621
_layout.
Data
.Height = oldDataHeight;
10632
&& _layout.
Data
.Height > totalVisibleFrozenHeight
10633
&& vertScrollBarWidth <= _layout.
Data
.Width)
10635
_layout.
Data
.Width -= vertScrollBarWidth;
10636
Debug.Assert(_layout.
Data
.Width >= 0);
10639
_layout.
Data
.X += vertScrollBarWidth;
10662
&& totalVisibleWidth > _layout.
Data
.Width && totalVisibleFrozenWidth < _layout.
Data
.Width
10663
&& horizScrollBarHeight <= _layout.
Data
.Height)
10675
_layout.
Data
.Width += vertScrollBarWidth;
10678
_layout.
Data
.X -= vertScrollBarWidth;
10681
_layout.
Data
.Height -= horizScrollBarHeight;
10682
Debug.Assert(_layout.
Data
.Height >= 0);
10689
&& _layout.
Data
.Height > totalVisibleFrozenHeight
10690
&& vertScrollBarWidth <= _layout.
Data
.Width)
10692
_layout.
Data
.Width -= vertScrollBarWidth;
10693
Debug.Assert(_layout.
Data
.Width >= 0);
10696
_layout.
Data
.X += vertScrollBarWidth;
10726
rightToLeftInternal ? _layout.
Data
.X - _vertScrollBar.Width : _layout.
Data
.Right,
10727
_layout.
Data
.Bottom,
10734
int widthNotVisible = totalVisibleWidth - _layout.
Data
.Width;
10744
_layout.
Data
.Bottom,
10765
int vertScrollBarTop = _layout.
Data
.Y;
10766
int vertScrollBarHeight = _layout.
Data
.Height;
10782
_vertScrollBar.LargeChange = _layout.
Data
.Height - totalVisibleFrozenHeight;
10784
rightToLeftInternal ? _layout.
Data
.X - _vertScrollBar.Width : _layout.
Data
.Right,
13858
Invalidate(Rectangle.Union(_layout.ColumnHeaders, _layout.
Data
));
14898
Rectangle rightArea = _layout.
Data
;
17146
Rectangle gridRect = _layout.
Data
;
17167
if (gridRect.Y == _layout.
Data
.Y)
20254
Rectangle editingZone = _layout.
Data
;
26538
while (xColumnRightEdge < _layout.
Data
.X && Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex))
26547
if (xColumnRightEdge < _layout.
Data
.X)
26559
while (xColumnRightEdge > _layout.
Data
.Right && Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex))
26568
if (xColumnRightEdge > _layout.
Data
.Right)
26767
while (yRowBottomEdge > _layout.
Data
.Bottom && rowIndex > firstDisplayedScrollingRow)
26771
if (yRowBottomEdge > _layout.
Data
.Bottom)
26810
Rectangle rowsRect = _layout.
Data
;
29481
Rectangle bottomArea = _layout.
Data
;
29556
Rectangle bottomArea = _layout.
Data
;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
976
int displayHeight = dataGridView.LayoutInfo.
Data
.Height;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (8)
1996
GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.
Data
.Height);
2001
useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.
Data
.Height + DataGridView.VerticalScrollingOffset) &&
2002
firstDisplayedRowHeight <= DataGridView.LayoutInfo.
Data
.Height;
2013
useRowShortcut = DataGridView.LayoutInfo.
Data
.Height < displayedRowsHeightBeforeAddition &&
2014
firstDisplayedRowHeight <= DataGridView.LayoutInfo.
Data
.Height;
2041
GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.
Data
.Height + SystemInformation.HorizontalScrollBarHeight);
2053
useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.
Data
.Height + DataGridView.VerticalScrollingOffset + SystemInformation.HorizontalScrollBarHeight) &&
2054
firstDisplayedRowHeight <= DataGridView.LayoutInfo.
Data
.Height;