2 writes to Data
System.Windows.Forms (2)
winforms\Managed\System\WinForms\DataGridViewLayoutData.cs (1)
52
this.
Data
= src.Data;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
4437
newLayout.
Data
= insideLeft;
132 references to Data
System.Windows.Forms (132)
winforms\Managed\System\WinForms\DataGridView.cs (7)
3112
int displayWidth = this.layout.
Data
.Width;
3188
int displayHeight = this.layout.
Data
.Height;
3388
int widthNotVisible = this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - this.layout.
Data
.Width;
3409
Rectangle rectTmp = this.layout.
Data
;
3514
else if (value > 0 && (this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - this.layout.
Data
.Width) <= 0)
4814
this.Invalidate(Rectangle.Union(this.layout.
Data
, this.layout.ColumnHeaders));
4869
Invalidate(this.layout.
Data
);
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
1283
int displayHeight = dataGridView.LayoutInfo.
Data
.Height;
winforms\Managed\System\WinForms\DataGridViewLayoutData.cs (2)
52
this.Data = src.
Data
;
79
sb.Append(
Data
.ToString());
winforms\Managed\System\WinForms\DataGridViewMethods.cs (114)
508
int displayHeight = this.layout.
Data
.Height;
555
if (this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) > this.layout.
Data
.Width)
563
int availableWidth = this.layout.
Data
.Width; // Width available for auto-filled columns
608
int maximumPossibleWidth = this.layout.
Data
.Width - imposedWidthSum;
756
int maximumPossibleWidth = this.layout.
Data
.Width - imposedWidthSum;
932
Debug.Assert(this.layout.
Data
.Width == this.layout.Inside.Width - this.layout.RowHeaders.Width - (this.SingleVerticalBorderAdded ? 1 : 0));
933
int availableWidth = this.layout.
Data
.Width - imposedWidthSum;
947
this.layout.
Data
.Height > totalVisibleFrozenHeight &&
948
SystemInformation.VerticalScrollBarWidth <= this.layout.
Data
.Width)
1308
int displayHeight = this.layout.
Data
.Height;
2045
int displayHeight = this.layout.
Data
.Height, cy = 0;
2218
int displayHeight = this.layout.
Data
.Height, cy = 0;
2461
Rectangle clip = Rectangle.Union(this.layout.ColumnHeaders, this.layout.
Data
);
2494
cursorClip.Width = Math.Min(frozenWidth, this.layout.
Data
.Width);
2503
else if (this.layout.
Data
.Width > frozenWidth + scrollingWidth)
2505
cursorClip.X += this.layout.
Data
.Width - frozenWidth - scrollingWidth;
2507
cursorClip.Width = Math.Min(scrollingWidth, this.layout.
Data
.Width);
2563
Rectangle clip = Rectangle.Union(this.layout.ColumnHeaders, this.layout.
Data
);
2567
clip.X = this.layout.
Data
.X - this.mouseBarOffset - 1;
2568
clip.Width = leftEdge - this.Columns[columnIndex].MinimumThickness - this.layout.
Data
.X + 3;
2579
clip.Width = this.layout.
Data
.Right - leftEdge - 1;
2775
Rectangle clip = Rectangle.Union(this.layout.RowHeaders, this.layout.
Data
);
2808
Rectangle clip = Rectangle.Union(this.layout.RowHeaders, this.layout.
Data
);
2811
clip.Height = this.layout.
Data
.Y + this.layout.
Data
.Height - topEdge - 1;
3040
Rectangle inside = this.layout.
Data
;
3056
Rectangle inside = this.layout.
Data
;
4188
if (this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) >= this.layout.
Data
.Width)
4244
int displayHeight = this.layout.
Data
.Height - totalVisibleFrozenHeight;
4440
Debug.Assert(newLayout.
Data
.X >= 0);
4441
Debug.Assert(newLayout.
Data
.Y >= 0);
4442
Debug.Assert(newLayout.
Data
.Width >= 0);
4443
Debug.Assert(newLayout.
Data
.Height >= 0);
4513
this.vertScrollBar.LargeChange = this.layout.
Data
.Height - totalVisibleFrozenHeight;
4558
int displayWidth = this.layout.
Data
.Width, cx = 0;
4750
int displayHeight = this.layout.
Data
.Height;
5531
int cxMax = this.layout.
Data
.Width, cx = 0;
6085
int y = Math.Min(e.Y + this.mouseBarOffset, this.layout.
Data
.Bottom - 1);
6150
newX = Math.Max(x + this.mouseBarOffset, this.layout.
Data
.X);
6155
newX = Math.Min(x + this.mouseBarOffset, this.layout.
Data
.Right - 1);
6324
x = Math.Max(e.X + this.mouseBarOffset, this.layout.
Data
.Left - 1);
6329
x = Math.Min(e.X + this.mouseBarOffset, this.layout.
Data
.Right - 1);
6356
int y = Math.Min(e.Y + this.mouseBarOffset, this.layout.
Data
.Bottom - 1);
6421
int displayHeight = this.layout.
Data
.Height;
8262
Rectangle data = this.layout.
Data
;
8396
Rectangle data = this.layout.
Data
;
8531
x = this.layout.
Data
.Right-1;
8535
x = this.layout.
Data
.X;
8641
Rectangle rectScrollingArea = this.layout.
Data
;
8646
int emptyBackgroundWidth = Math.Max(0, this.layout.
Data
.Width - this.Columns.GetColumnsWidth(DataGridViewElementStates.Visible));
8647
int emptyBackgroundHeight = Math.Max(0, this.layout.
Data
.Height - frozenVisibleRowsHeight - trailingScrollingRowsHeight);
8903
if (mouseY < this.layout.
Data
.Top)
8905
mouseY = this.layout.
Data
.Top+1;
8973
if (!this.RightToLeftInternal && mouseX < this.layout.
Data
.Left)
8975
mouseX = this.layout.
Data
.Left+1;
8978
else if (this.RightToLeftInternal && mouseX > this.layout.
Data
.Right)
8980
mouseX = this.layout.
Data
.Right-1;
9124
Rectangle data = this.layout.
Data
;
9201
Rectangle data = this.layout.
Data
;
9286
int y = this.layout.
Data
.Y;
9619
if (this.layout.
Data
.Contains(x, y))
10009
Invalidate(this.layout.
Data
);
10075
data = this.layout.
Data
;
10349
totalVisibleWidth > this.layout.
Data
.Width && totalVisibleFrozenWidth < this.layout.
Data
.Width &&
10350
horizScrollBarHeight <= this.layout.
Data
.Height)
10352
int oldDataHeight = this.layout.
Data
.Height;
10353
this.layout.
Data
.Height -= horizScrollBarHeight;
10354
Debug.Assert(this.layout.
Data
.Height >= 0);
10356
if (totalVisibleWidth - this.layout.
Data
.Width <= vertScrollBarWidth ||
10357
this.layout.
Data
.Width - totalVisibleFrozenWidth <= vertScrollBarWidth)
10366
needHorizScrollbar = (totalVisibleFrozenWidth < this.layout.
Data
.Width - vertScrollBarWidth);
10382
this.layout.
Data
.Height = oldDataHeight;
10393
this.layout.
Data
.Height > totalVisibleFrozenHeight &&
10394
vertScrollBarWidth <= this.layout.
Data
.Width)
10396
this.layout.
Data
.Width -= vertScrollBarWidth;
10397
Debug.Assert(this.layout.
Data
.Width >= 0);
10400
this.layout.
Data
.X += vertScrollBarWidth;
10420
totalVisibleWidth > this.layout.
Data
.Width && totalVisibleFrozenWidth < this.layout.
Data
.Width &&
10421
horizScrollBarHeight <= this.layout.
Data
.Height)
10432
this.layout.
Data
.Width += vertScrollBarWidth;
10435
this.layout.
Data
.X -= vertScrollBarWidth;
10437
this.layout.
Data
.Height -= horizScrollBarHeight;
10438
Debug.Assert(this.layout.
Data
.Height >= 0);
10445
this.layout.
Data
.Height > totalVisibleFrozenHeight &&
10446
vertScrollBarWidth <= this.layout.
Data
.Width)
10448
this.layout.
Data
.Width -= vertScrollBarWidth;
10449
Debug.Assert(this.layout.
Data
.Width >= 0);
10452
this.layout.
Data
.X += vertScrollBarWidth;
10479
rightToLeftInternal ? this.layout.
Data
.X - this.vertScrollBar.Width : this.layout.
Data
.Right,
10480
this.layout.
Data
.Bottom,
10487
int widthNotVisible = totalVisibleWidth - this.layout.
Data
.Width;
10497
this.layout.
Data
.Bottom,
10518
int vertScrollBarTop = this.layout.
Data
.Y;
10519
int vertScrollBarHeight = this.layout.
Data
.Height;
10535
this.vertScrollBar.LargeChange = this.layout.
Data
.Height - totalVisibleFrozenHeight;
10537
rightToLeftInternal ? this.layout.
Data
.X - this.vertScrollBar.Width : this.layout.
Data
.Right,
13918
Invalidate(Rectangle.Union(this.layout.ColumnHeaders, this.layout.
Data
));
14950
Rectangle rightArea = this.layout.
Data
;
17189
Rectangle gridRect = this.layout.
Data
;
17209
if (gridRect.Y == this.layout.
Data
.Y)
20352
Rectangle editingZone = this.layout.
Data
;
26178
while (xColumnRightEdge < this.layout.
Data
.X && this.Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex))
26186
if (xColumnRightEdge < this.layout.
Data
.X)
26197
while (xColumnRightEdge > this.layout.
Data
.Right && this.Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex))
26205
if (xColumnRightEdge > this.layout.
Data
.Right)
26395
while (yRowBottomEdge > this.layout.
Data
.Bottom && rowIndex > firstDisplayedScrollingRow)
26399
if (yRowBottomEdge > this.layout.
Data
.Bottom)
26434
Rectangle rowsRect = this.layout.
Data
;
29058
Rectangle bottomArea = this.layout.
Data
;
29122
Rectangle bottomArea = this.layout.
Data
;
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (8)
2122
GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.
Data
.Height);
2127
useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.
Data
.Height + this.DataGridView.VerticalScrollingOffset) &&
2128
firstDisplayedRowHeight <= this.DataGridView.LayoutInfo.
Data
.Height;
2139
useRowShortcut = this.DataGridView.LayoutInfo.
Data
.Height < displayedRowsHeightBeforeAddition &&
2140
firstDisplayedRowHeight <= this.DataGridView.LayoutInfo.
Data
.Height;
2166
GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.
Data
.Height + SystemInformation.HorizontalScrollBarHeight);
2177
useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, this.DataGridView.LayoutInfo.
Data
.Height + this.DataGridView.VerticalScrollingOffset + SystemInformation.HorizontalScrollBarHeight) &&
2178
firstDisplayedRowHeight <= this.DataGridView.LayoutInfo.
Data
.Height;