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