2 writes to Data
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.LayoutData.cs (1)
49Data = src.Data;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
4527newLayout.Data = insideLeft;
132 references to Data
System.Windows.Forms (132)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (7)
2474int displayWidth = _layout.Data.Width; 2554int displayHeight = _layout.Data.Height; 2687int widthNotVisible = Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - _layout.Data.Width; 2710Rectangle rectTmp = _layout.Data; 2809if (value > 0 && (Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - _layout.Data.Width) <= 0) 3821Invalidate(Rectangle.Union(_layout.Data, _layout.ColumnHeaders)); 3874Invalidate(_layout.Data);
System\Windows\Forms\Controls\DataGridView\DataGridView.LayoutData.cs (2)
49Data = src.Data; 64Data = {{Data}}
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (114)
539int displayHeight = _layout.Data.Height; 585if (Columns.GetColumnsWidth(DataGridViewElementStates.Visible) > _layout.Data.Width) 593int availableWidth = _layout.Data.Width; // Width available for auto-filled columns 639int maximumPossibleWidth = _layout.Data.Width - imposedWidthSum; 793int maximumPossibleWidth = _layout.Data.Width - imposedWidthSum; 970Debug.Assert(_layout.Data.Width == _layout.Inside.Width - _layout.RowHeaders.Width - (SingleVerticalBorderAdded ? 1 : 0)); 971int availableWidth = _layout.Data.Width - imposedWidthSum; 984&& _layout.Data.Height > totalVisibleFrozenHeight 985&& SystemInformation.VerticalScrollBarWidth <= _layout.Data.Width) 1365int displayHeight = _layout.Data.Height; 2084int displayHeight = _layout.Data.Height, cy = 0; 2246int displayHeight = _layout.Data.Height, cy = 0; 2476Rectangle clip = Rectangle.Union(_layout.ColumnHeaders, _layout.Data); 2511cursorClip.Width = Math.Min(frozenWidth, _layout.Data.Width); 2520else if (_layout.Data.Width > frozenWidth + scrollingWidth) 2522cursorClip.X += _layout.Data.Width - frozenWidth - scrollingWidth; 2525cursorClip.Width = Math.Min(scrollingWidth, _layout.Data.Width); 2582Rectangle clip = Rectangle.Union(_layout.ColumnHeaders, _layout.Data); 2586clip.X = _layout.Data.X - _mouseBarOffset - 1; 2587clip.Width = leftEdge - Columns[columnIndex].MinimumThickness - _layout.Data.X + 3; 2598clip.Width = _layout.Data.Right - leftEdge - 1; 2781Rectangle clip = Rectangle.Union(_layout.RowHeaders, _layout.Data); 2816Rectangle clip = Rectangle.Union(_layout.RowHeaders, _layout.Data); 2819clip.Height = _layout.Data.Y + _layout.Data.Height - topEdge - 1; 3058Rectangle inside = _layout.Data; 3079Rectangle inside = _layout.Data; 4270if (Columns.GetColumnsWidth(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) >= _layout.Data.Width) 4328int displayHeight = _layout.Data.Height - totalVisibleFrozenHeight; 4530Debug.Assert(newLayout.Data.X >= 0); 4531Debug.Assert(newLayout.Data.Y >= 0); 4532Debug.Assert(newLayout.Data.Width >= 0); 4533Debug.Assert(newLayout.Data.Height >= 0); 4603_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 4624int displayWidth = _layout.Data.Width, cx = 0; 4827int displayHeight = _layout.Data.Height; 5578int cxMax = _layout.Data.Width, cx = 0; 6105int y = Math.Min(e.Y + _mouseBarOffset, _layout.Data.Bottom - 1); 6169newX = Math.Max(x + _mouseBarOffset, _layout.Data.X); 6174newX = Math.Min(x + _mouseBarOffset, _layout.Data.Right - 1); 6352x = Math.Max(e.X + _mouseBarOffset, _layout.Data.Left - 1); 6357x = Math.Min(e.X + _mouseBarOffset, _layout.Data.Right - 1); 6384int y = Math.Min(e.Y + _mouseBarOffset, _layout.Data.Bottom - 1); 6454int displayHeight = _layout.Data.Height; 8266Rectangle data = _layout.Data; 8380Rectangle data = _layout.Data; 8512int x = RightToLeftInternal ? _layout.Data.Right - 1 : _layout.Data.X; 8620Rectangle rectScrollingArea = _layout.Data; 8625int emptyBackgroundWidth = Math.Max(0, _layout.Data.Width - Columns.GetColumnsWidth(DataGridViewElementStates.Visible)); 8626int emptyBackgroundHeight = Math.Max(0, _layout.Data.Height - frozenVisibleRowsHeight - trailingScrollingRowsHeight); 8884if (mouseY < _layout.Data.Top) 8886mouseY = _layout.Data.Top + 1; 8949if (!RightToLeftInternal && mouseX < _layout.Data.Left) 8951mouseX = _layout.Data.Left + 1; 8954else if (RightToLeftInternal && mouseX > _layout.Data.Right) 8956mouseX = _layout.Data.Right - 1; 9096Rectangle data = _layout.Data; 9166Rectangle data = _layout.Data; 9257int y = _layout.Data.Y; 9535if (_layout.Data.Contains(x, y)) 9887Invalidate(_layout.Data); 9955data = _layout.Data; 10228&& totalVisibleWidth > _layout.Data.Width 10229&& totalVisibleFrozenWidth < _layout.Data.Width 10230&& horizScrollBarHeight <= _layout.Data.Height) 10232int oldDataHeight = _layout.Data.Height; 10233_layout.Data.Height -= horizScrollBarHeight; 10234Debug.Assert(_layout.Data.Height >= 0); 10236if (totalVisibleWidth - _layout.Data.Width <= vertScrollBarWidth 10237|| _layout.Data.Width - totalVisibleFrozenWidth <= vertScrollBarWidth) 10246needHorizScrollbar = totalVisibleFrozenWidth < _layout.Data.Width - vertScrollBarWidth; 10263_layout.Data.Height = oldDataHeight; 10274&& _layout.Data.Height > totalVisibleFrozenHeight 10275&& vertScrollBarWidth <= _layout.Data.Width) 10277_layout.Data.Width -= vertScrollBarWidth; 10278Debug.Assert(_layout.Data.Width >= 0); 10281_layout.Data.X += vertScrollBarWidth; 10304&& totalVisibleWidth > _layout.Data.Width && totalVisibleFrozenWidth < _layout.Data.Width 10305&& horizScrollBarHeight <= _layout.Data.Height) 10317_layout.Data.Width += vertScrollBarWidth; 10320_layout.Data.X -= vertScrollBarWidth; 10323_layout.Data.Height -= horizScrollBarHeight; 10324Debug.Assert(_layout.Data.Height >= 0); 10331&& _layout.Data.Height > totalVisibleFrozenHeight 10332&& vertScrollBarWidth <= _layout.Data.Width) 10334_layout.Data.Width -= vertScrollBarWidth; 10335Debug.Assert(_layout.Data.Width >= 0); 10338_layout.Data.X += vertScrollBarWidth; 10361rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 10362_layout.Data.Bottom, 10369int widthNotVisible = totalVisibleWidth - _layout.Data.Width; 10379_layout.Data.Bottom, 10400int vertScrollBarTop = _layout.Data.Y; 10401int vertScrollBarHeight = _layout.Data.Height; 10417_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 10419rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 13506Invalidate(Rectangle.Union(_layout.ColumnHeaders, _layout.Data)); 14546Rectangle rightArea = _layout.Data; 16802Rectangle gridRect = _layout.Data; 16823if (gridRect.Y == _layout.Data.Y) 19869Rectangle editingZone = _layout.Data; 26129while (xColumnRightEdge < _layout.Data.X && Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex)) 26138if (xColumnRightEdge < _layout.Data.X) 26150while (xColumnRightEdge > _layout.Data.Right && Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex)) 26159if (xColumnRightEdge > _layout.Data.Right) 26358while (yRowBottomEdge > _layout.Data.Bottom && rowIndex > firstDisplayedScrollingRow) 26362if (yRowBottomEdge > _layout.Data.Bottom) 26401Rectangle rowsRect = _layout.Data; 29072Rectangle bottomArea = _layout.Data; 29147Rectangle bottomArea = _layout.Data;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
973int displayHeight = dataGridView.LayoutInfo.Data.Height;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (8)
1996GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.Data.Height); 2001useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.Data.Height + DataGridView.VerticalScrollingOffset) && 2002firstDisplayedRowHeight <= DataGridView.LayoutInfo.Data.Height; 2013useRowShortcut = DataGridView.LayoutInfo.Data.Height < displayedRowsHeightBeforeAddition && 2014firstDisplayedRowHeight <= DataGridView.LayoutInfo.Data.Height; 2041GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.Data.Height + SystemInformation.HorizontalScrollBarHeight); 2053useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.Data.Height + DataGridView.VerticalScrollingOffset + SystemInformation.HorizontalScrollBarHeight) && 2054firstDisplayedRowHeight <= DataGridView.LayoutInfo.Data.Height;