2 writes to _stateImageList
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
696_stateImageList = value; 1555_stateImageList = null;
26 references to _stateImageList
System.Windows.Forms (26)
System\Windows\Forms\Controls\TreeView\TreeView.cs (26)
663if (_stateImageList is not null) 666_stateImageList.RecreateHandle += StateImageListRecreateHandle; 667_stateImageList.Disposed += DetachStateImageList; 668_stateImageList.ChangeHandle += StateImageListChangedHandle; 674if (_stateImageList is not null) 676_stateImageList.RecreateHandle -= StateImageListRecreateHandle; 677_stateImageList.Disposed -= DetachStateImageList; 678_stateImageList.ChangeHandle -= StateImageListChangedHandle; 690get => _stateImageList; 693if (value != _stateImageList) 708if ((_stateImageList is null || _stateImageList.Images.Count == 0) && CheckBoxes) 1756if (sender is null || sender != _stateImageList || !IsHandleCreated) 1763if (_stateImageList is null || _stateImageList.Images.Count <= 0) 1769Image[] images = new Image[_stateImageList.Images.Count + 1]; 1770images[0] = _stateImageList.Images[0]; 1771for (int i = 1; i <= _stateImageList.Images.Count; i++) 1773images[i] = _stateImageList.Images[i - 1]; 1906if (_stateImageList is not null) 1969if (_stateImageList is null || _stateImageList.Images.Count <= 0) 1980Image[] images = new Image[_stateImageList.Images.Count + 1]; 1981images[0] = _stateImageList.Images[0]; 1982for (int i = 1; i <= _stateImageList.Images.Count; i++) 1984images[i] = _stateImageList.Images[i - 1];