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)
4471newLayout.Data = insideLeft;
132 references to Data
System.Windows.Forms (132)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (7)
2470int displayWidth = _layout.Data.Width; 2550int displayHeight = _layout.Data.Height; 2683int widthNotVisible = Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - _layout.Data.Width; 2706Rectangle rectTmp = _layout.Data; 2805if (value > 0 && (Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - _layout.Data.Width) <= 0) 3817Invalidate(Rectangle.Union(_layout.Data, _layout.ColumnHeaders)); 3870Invalidate(_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)
494int displayHeight = _layout.Data.Height; 540if (Columns.GetColumnsWidth(DataGridViewElementStates.Visible) > _layout.Data.Width) 548int availableWidth = _layout.Data.Width; // Width available for auto-filled columns 594int maximumPossibleWidth = _layout.Data.Width - imposedWidthSum; 748int maximumPossibleWidth = _layout.Data.Width - imposedWidthSum; 925Debug.Assert(_layout.Data.Width == _layout.Inside.Width - _layout.RowHeaders.Width - (SingleVerticalBorderAdded ? 1 : 0)); 926int availableWidth = _layout.Data.Width - imposedWidthSum; 939&& _layout.Data.Height > totalVisibleFrozenHeight 940&& SystemInformation.VerticalScrollBarWidth <= _layout.Data.Width) 1320int displayHeight = _layout.Data.Height; 2039int displayHeight = _layout.Data.Height, cy = 0; 2201int displayHeight = _layout.Data.Height, cy = 0; 2431Rectangle clip = Rectangle.Union(_layout.ColumnHeaders, _layout.Data); 2466cursorClip.Width = Math.Min(frozenWidth, _layout.Data.Width); 2475else if (_layout.Data.Width > frozenWidth + scrollingWidth) 2477cursorClip.X += _layout.Data.Width - frozenWidth - scrollingWidth; 2480cursorClip.Width = Math.Min(scrollingWidth, _layout.Data.Width); 2537Rectangle clip = Rectangle.Union(_layout.ColumnHeaders, _layout.Data); 2541clip.X = _layout.Data.X - _mouseBarOffset - 1; 2542clip.Width = leftEdge - Columns[columnIndex].MinimumThickness - _layout.Data.X + 3; 2553clip.Width = _layout.Data.Right - leftEdge - 1; 2739Rectangle clip = Rectangle.Union(_layout.RowHeaders, _layout.Data); 2774Rectangle clip = Rectangle.Union(_layout.RowHeaders, _layout.Data); 2777clip.Height = _layout.Data.Y + _layout.Data.Height - topEdge - 1; 3002Rectangle inside = _layout.Data; 3023Rectangle inside = _layout.Data; 4214if (Columns.GetColumnsWidth(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) >= _layout.Data.Width) 4272int displayHeight = _layout.Data.Height - totalVisibleFrozenHeight; 4474Debug.Assert(newLayout.Data.X >= 0); 4475Debug.Assert(newLayout.Data.Y >= 0); 4476Debug.Assert(newLayout.Data.Width >= 0); 4477Debug.Assert(newLayout.Data.Height >= 0); 4547_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 4568int displayWidth = _layout.Data.Width, cx = 0; 4771int displayHeight = _layout.Data.Height; 5522int cxMax = _layout.Data.Width, cx = 0; 6049int y = Math.Min(e.Y + _mouseBarOffset, _layout.Data.Bottom - 1); 6113newX = Math.Max(x + _mouseBarOffset, _layout.Data.X); 6118newX = Math.Min(x + _mouseBarOffset, _layout.Data.Right - 1); 6296x = Math.Max(e.X + _mouseBarOffset, _layout.Data.Left - 1); 6301x = Math.Min(e.X + _mouseBarOffset, _layout.Data.Right - 1); 6328int y = Math.Min(e.Y + _mouseBarOffset, _layout.Data.Bottom - 1); 6398int displayHeight = _layout.Data.Height; 8210Rectangle data = _layout.Data; 8324Rectangle data = _layout.Data; 8456int x = RightToLeftInternal ? _layout.Data.Right - 1 : _layout.Data.X; 8564Rectangle rectScrollingArea = _layout.Data; 8569int emptyBackgroundWidth = Math.Max(0, _layout.Data.Width - Columns.GetColumnsWidth(DataGridViewElementStates.Visible)); 8570int emptyBackgroundHeight = Math.Max(0, _layout.Data.Height - frozenVisibleRowsHeight - trailingScrollingRowsHeight); 8828if (mouseY < _layout.Data.Top) 8830mouseY = _layout.Data.Top + 1; 8893if (!RightToLeftInternal && mouseX < _layout.Data.Left) 8895mouseX = _layout.Data.Left + 1; 8898else if (RightToLeftInternal && mouseX > _layout.Data.Right) 8900mouseX = _layout.Data.Right - 1; 9040Rectangle data = _layout.Data; 9110Rectangle data = _layout.Data; 9201int y = _layout.Data.Y; 9479if (_layout.Data.Contains(x, y)) 9831Invalidate(_layout.Data); 9899data = _layout.Data; 10172&& totalVisibleWidth > _layout.Data.Width 10173&& totalVisibleFrozenWidth < _layout.Data.Width 10174&& horizScrollBarHeight <= _layout.Data.Height) 10176int oldDataHeight = _layout.Data.Height; 10177_layout.Data.Height -= horizScrollBarHeight; 10178Debug.Assert(_layout.Data.Height >= 0); 10180if (totalVisibleWidth - _layout.Data.Width <= vertScrollBarWidth 10181|| _layout.Data.Width - totalVisibleFrozenWidth <= vertScrollBarWidth) 10190needHorizScrollbar = totalVisibleFrozenWidth < _layout.Data.Width - vertScrollBarWidth; 10207_layout.Data.Height = oldDataHeight; 10218&& _layout.Data.Height > totalVisibleFrozenHeight 10219&& vertScrollBarWidth <= _layout.Data.Width) 10221_layout.Data.Width -= vertScrollBarWidth; 10222Debug.Assert(_layout.Data.Width >= 0); 10225_layout.Data.X += vertScrollBarWidth; 10248&& totalVisibleWidth > _layout.Data.Width && totalVisibleFrozenWidth < _layout.Data.Width 10249&& horizScrollBarHeight <= _layout.Data.Height) 10261_layout.Data.Width += vertScrollBarWidth; 10264_layout.Data.X -= vertScrollBarWidth; 10267_layout.Data.Height -= horizScrollBarHeight; 10268Debug.Assert(_layout.Data.Height >= 0); 10275&& _layout.Data.Height > totalVisibleFrozenHeight 10276&& vertScrollBarWidth <= _layout.Data.Width) 10278_layout.Data.Width -= vertScrollBarWidth; 10279Debug.Assert(_layout.Data.Width >= 0); 10282_layout.Data.X += vertScrollBarWidth; 10305rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 10306_layout.Data.Bottom, 10313int widthNotVisible = totalVisibleWidth - _layout.Data.Width; 10323_layout.Data.Bottom, 10344int vertScrollBarTop = _layout.Data.Y; 10345int vertScrollBarHeight = _layout.Data.Height; 10361_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 10363rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 13450Invalidate(Rectangle.Union(_layout.ColumnHeaders, _layout.Data)); 14490Rectangle rightArea = _layout.Data; 16740Rectangle gridRect = _layout.Data; 16761if (gridRect.Y == _layout.Data.Y) 19807Rectangle editingZone = _layout.Data; 26059while (xColumnRightEdge < _layout.Data.X && Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex)) 26068if (xColumnRightEdge < _layout.Data.X) 26080while (xColumnRightEdge > _layout.Data.Right && Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex)) 26089if (xColumnRightEdge > _layout.Data.Right) 26288while (yRowBottomEdge > _layout.Data.Bottom && rowIndex > firstDisplayedScrollingRow) 26292if (yRowBottomEdge > _layout.Data.Bottom) 26331Rectangle rowsRect = _layout.Data; 29002Rectangle bottomArea = _layout.Data; 29077Rectangle 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;