12 writes to _horizontalOffset
System.Windows.Forms (12)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2701_horizontalOffset = value;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (11)
4660_horizontalOffset -= FirstDisplayedScrollingColumnHiddenWidth; 4665_horizontalOffset -= displayWidth - cx; 4684_horizontalOffset -= dataGridViewColumn.Thickness; 4703_horizontalOffset -= displayWidth - cx; 14335_horizontalOffset -= dataGridViewColumn.Thickness; 14339_horizontalOffset = FirstDisplayedScrollingColumnHiddenWidth = 0; 14345_horizontalOffset = FirstDisplayedScrollingColumnHiddenWidth = 0; 17163_horizontalOffset -= FirstDisplayedScrollingColumnHiddenWidth; 17174_horizontalOffset = newHorizontalOffset; 17180_horizontalOffset = FirstDisplayedScrollingColumnHiddenWidth = 0; 17187_horizontalOffset -= dataGridViewColumn.Thickness;
22 references to _horizontalOffset
System.Windows.Forms (22)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (8)
2674get => _horizontalOffset; 2688if (value == _horizontalOffset) 2695int change = _horizontalOffset - value; 2776OnScroll(scrollEventType, _horizontalOffset + change, _horizontalOffset, ScrollOrientation.HorizontalScroll); 2793get => _horizontalOffset; 2808Debug.Assert(_horizontalOffset == 0); 2812if (value == _horizontalOffset)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (14)
4220if (_horizontalOffset == 0) 4230if (cx > _horizontalOffset) 4243Debug.Assert(cx <= _horizontalOffset); 4252if (FirstDisplayedScrollingColumnHiddenWidth != _horizontalOffset) 4262FirstDisplayedScrollingColumnHiddenWidth = dataGridViewColumn.Thickness - (cx - _horizontalOffset); 4672if (cx < displayWidth && _horizontalOffset > 0) 4692if (cx < displayWidth && _horizontalOffset > 0 && firstDisplayedScrollingCol != 0) 4707Debug.Assert(FirstDisplayedScrollingColumnHiddenWidth == GetNegOffsetFromHorizontalOffset(_horizontalOffset)); 14332if (_horizontalOffset >= dataGridViewColumn.Thickness) 14350_horizScrollBar.Value = _horizontalOffset; 17175FirstDisplayedScrollingColumnHiddenWidth = GetNegOffsetFromHorizontalOffset(_horizontalOffset); 17186Debug.Assert(_horizontalOffset >= dataGridViewColumn.Thickness); 17192_horizScrollBar.Value = _horizontalOffset; 19253int rowsWidth = visibleColumnsWidth - _horizontalOffset;