2 writes to TotalProperties
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3567TotalProperties = CountPropertiesFromOutline(TopLevelGridEntries); 3922TotalProperties = propertyCount;
27 references to TotalProperties
System.Windows.Forms (27)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (27)
1670if (_visibleRows == -1 || TotalProperties == -1 || !HasEntries) 1680var newEntries = new GridEntry[TotalProperties]; 2071|| (newValue + (ScrollBar.LargeChange - 1) >= TotalProperties)) 2206if (TotalProperties <= 0) 2357if (TotalProperties <= 0) 2946if (e.Button == MouseButtons.Left && SplitterInside(e.X) && TotalProperties != 0) 3090if (TotalProperties != 0 && (SplitterInside(e.X) || _flags.HasFlag(Flags.IsSplitterMove))) 3176newOffset = Math.Min(newOffset, TotalProperties - _visibleRows + 1); 3209newOffset = Math.Min(newOffset, TotalProperties - _visibleRows + 1); 3283int visibleCount = Math.Min(TotalProperties - GetScrollOffset(), 1 + _visibleRows); 3296if (TotalProperties > 0) 3635SelectGridEntry(oldGridEntry, pageIn: ScrollBar.Value == TotalProperties); 3920if (TotalProperties != propertyCount) 4002int oldLength = TotalProperties; 4031int newLength = TotalProperties; 4056SetFlag(Flags.NoDefault, gridEntry is null && TotalProperties > 0); 4486int items = TotalProperties; 4517int newItems = TotalProperties - items; 4522SetScrollOffset(TotalProperties - items + offset); 4549int newPosition = Math.Max(0, Math.Min(TotalProperties - _visibleRows + 1, offset)); 4799if (TotalProperties == -1) 4804if (TotalProperties < _visibleRows) 4808else if (GetScrollOffset() > TotalProperties) 4810SetScrollOffset(TotalProperties + 1 - _visibleRows); 4821ScrollBar.Maximum = Math.Max(0, TotalProperties - 1); 4822if (hidden != (TotalProperties < _visibleRows)) 5195if (TotalProperties > 0 && TryGetService(out IMenuCommandService? menuCommandService))