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