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)
4468newLayout.Data = insideLeft;
132 references to Data
System.Windows.Forms (132)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (7)
2469int displayWidth = _layout.Data.Width; 2549int displayHeight = _layout.Data.Height; 2682int widthNotVisible = Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - _layout.Data.Width; 2705Rectangle rectTmp = _layout.Data; 2804if (value > 0 && (Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - _layout.Data.Width) <= 0) 3816Invalidate(Rectangle.Union(_layout.Data, _layout.ColumnHeaders)); 3869Invalidate(_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; 2736Rectangle clip = Rectangle.Union(_layout.RowHeaders, _layout.Data); 2771Rectangle clip = Rectangle.Union(_layout.RowHeaders, _layout.Data); 2774clip.Height = _layout.Data.Y + _layout.Data.Height - topEdge - 1; 2999Rectangle inside = _layout.Data; 3020Rectangle inside = _layout.Data; 4211if (Columns.GetColumnsWidth(DataGridViewElementStates.Visible | DataGridViewElementStates.Frozen) >= _layout.Data.Width) 4269int displayHeight = _layout.Data.Height - totalVisibleFrozenHeight; 4471Debug.Assert(newLayout.Data.X >= 0); 4472Debug.Assert(newLayout.Data.Y >= 0); 4473Debug.Assert(newLayout.Data.Width >= 0); 4474Debug.Assert(newLayout.Data.Height >= 0); 4544_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 4565int displayWidth = _layout.Data.Width, cx = 0; 4768int displayHeight = _layout.Data.Height; 5519int cxMax = _layout.Data.Width, cx = 0; 6046int y = Math.Min(e.Y + _mouseBarOffset, _layout.Data.Bottom - 1); 6110newX = Math.Max(x + _mouseBarOffset, _layout.Data.X); 6115newX = Math.Min(x + _mouseBarOffset, _layout.Data.Right - 1); 6293x = Math.Max(e.X + _mouseBarOffset, _layout.Data.Left - 1); 6298x = Math.Min(e.X + _mouseBarOffset, _layout.Data.Right - 1); 6325int y = Math.Min(e.Y + _mouseBarOffset, _layout.Data.Bottom - 1); 6395int displayHeight = _layout.Data.Height; 8207Rectangle data = _layout.Data; 8321Rectangle data = _layout.Data; 8453int x = RightToLeftInternal ? _layout.Data.Right - 1 : _layout.Data.X; 8561Rectangle rectScrollingArea = _layout.Data; 8566int emptyBackgroundWidth = Math.Max(0, _layout.Data.Width - Columns.GetColumnsWidth(DataGridViewElementStates.Visible)); 8567int emptyBackgroundHeight = Math.Max(0, _layout.Data.Height - frozenVisibleRowsHeight - trailingScrollingRowsHeight); 8825if (mouseY < _layout.Data.Top) 8827mouseY = _layout.Data.Top + 1; 8890if (!RightToLeftInternal && mouseX < _layout.Data.Left) 8892mouseX = _layout.Data.Left + 1; 8895else if (RightToLeftInternal && mouseX > _layout.Data.Right) 8897mouseX = _layout.Data.Right - 1; 9037Rectangle data = _layout.Data; 9107Rectangle data = _layout.Data; 9198int y = _layout.Data.Y; 9476if (_layout.Data.Contains(x, y)) 9828Invalidate(_layout.Data); 9896data = _layout.Data; 10169&& totalVisibleWidth > _layout.Data.Width 10170&& totalVisibleFrozenWidth < _layout.Data.Width 10171&& horizScrollBarHeight <= _layout.Data.Height) 10173int oldDataHeight = _layout.Data.Height; 10174_layout.Data.Height -= horizScrollBarHeight; 10175Debug.Assert(_layout.Data.Height >= 0); 10177if (totalVisibleWidth - _layout.Data.Width <= vertScrollBarWidth 10178|| _layout.Data.Width - totalVisibleFrozenWidth <= vertScrollBarWidth) 10187needHorizScrollbar = totalVisibleFrozenWidth < _layout.Data.Width - vertScrollBarWidth; 10204_layout.Data.Height = oldDataHeight; 10215&& _layout.Data.Height > totalVisibleFrozenHeight 10216&& vertScrollBarWidth <= _layout.Data.Width) 10218_layout.Data.Width -= vertScrollBarWidth; 10219Debug.Assert(_layout.Data.Width >= 0); 10222_layout.Data.X += vertScrollBarWidth; 10245&& totalVisibleWidth > _layout.Data.Width && totalVisibleFrozenWidth < _layout.Data.Width 10246&& horizScrollBarHeight <= _layout.Data.Height) 10258_layout.Data.Width += vertScrollBarWidth; 10261_layout.Data.X -= vertScrollBarWidth; 10264_layout.Data.Height -= horizScrollBarHeight; 10265Debug.Assert(_layout.Data.Height >= 0); 10272&& _layout.Data.Height > totalVisibleFrozenHeight 10273&& vertScrollBarWidth <= _layout.Data.Width) 10275_layout.Data.Width -= vertScrollBarWidth; 10276Debug.Assert(_layout.Data.Width >= 0); 10279_layout.Data.X += vertScrollBarWidth; 10302rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 10303_layout.Data.Bottom, 10310int widthNotVisible = totalVisibleWidth - _layout.Data.Width; 10320_layout.Data.Bottom, 10341int vertScrollBarTop = _layout.Data.Y; 10342int vertScrollBarHeight = _layout.Data.Height; 10358_vertScrollBar.LargeChange = _layout.Data.Height - totalVisibleFrozenHeight; 10360rightToLeftInternal ? _layout.Data.X - _vertScrollBar.Width : _layout.Data.Right, 13447Invalidate(Rectangle.Union(_layout.ColumnHeaders, _layout.Data)); 14487Rectangle rightArea = _layout.Data; 16737Rectangle gridRect = _layout.Data; 16758if (gridRect.Y == _layout.Data.Y) 19804Rectangle editingZone = _layout.Data; 26056while (xColumnRightEdge < _layout.Data.X && Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex)) 26065if (xColumnRightEdge < _layout.Data.X) 26077while (xColumnRightEdge > _layout.Data.Right && Columns.DisplayInOrder(firstDisplayedScrollingColumn, columnIndex)) 26086if (xColumnRightEdge > _layout.Data.Right) 26285while (yRowBottomEdge > _layout.Data.Bottom && rowIndex > firstDisplayedScrollingRow) 26289if (yRowBottomEdge > _layout.Data.Bottom) 26328Rectangle rowsRect = _layout.Data; 28999Rectangle bottomArea = _layout.Data; 29074Rectangle 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;