3 writes to _childCount
System.Windows.Forms (3)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
1798_childCount++; 1966_parent._childCount--;
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
340_owner._childCount++;
47 references to _childCount
System.Windows.Forms (47)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (37)
381public TreeNode? FirstNode => _childCount == 0 ? null : _children[0]; 647if (_childCount == 0) 652return _children[_childCount - 1]; 1131if (_childCount > 0) 1138if (compare.Compare(_children[_childCount - 1].Text, nodeText) <= 0) 1140index = _childCount; 1145for (iMin = 0, iLim = _childCount; iMin < iLim;) 1165for (iMin = 0, iLim = _childCount; iMin < iLim;) 1195if (_childCount <= 0) 1200TreeNode[] newOrder = new TreeNode[_childCount]; 1204for (int i = 0; i < _childCount; i++) 1207for (int j = 0; j < _childCount; j++) 1238for (int i = 0; i < _childCount; i++) 1241for (int j = 0; j < _childCount; j++) 1311if (_childCount > MAX_TREENODES_OPS) 1318while (_childCount > 0) 1320_children[_childCount - 1].Remove(true); 1379if (_childCount > 0) 1381node._children = new TreeNode[_childCount]; 1382for (int i = 0; i < _childCount; i++) 1422if (!ignoreChildren && _childCount > 0) 1425for (int i = 0; i < _childCount; i++) 1614else if (_childCount + num > _children.Length) 1616int newSize = _childCount + num; 1619newSize = _childCount * 2; 1623Array.Copy(_children, 0, bigger, 0, _childCount); 1694for (int i = 0; i < _childCount; i++) 1754int total = _childCount; 1757for (int i = 0; i < _childCount; i++) 1792for (int i = _childCount; i > index; --i) 1915for (int i = _childCount - 1; i >= 0; i--) 1949for (int i = 0; i < _childCount; i++) 1958for (int i = _index; i < _parent._childCount - 1; ++i) 1964_parent._children[_parent._childCount - 1] = null; 2079si.AddValue("ChildCount", _childCount); 2081if (_childCount > 0) 2083for (int i = 0; i < _childCount; i++)
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (10)
36ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner._childCount); 43ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner._childCount); 115public int Count => _owner._childCount; 225_owner.Nodes.FixedIndex = _owner._childCount; 336node._index = _owner._childCount; 467if (index > _owner._childCount) 469index = _owner._childCount; 585if (_owner._childCount > 0) 587Array.Copy(_owner._children, 0, dest, index, _owner._childCount); 625return new ArraySubsetEnumerator(_owner._children, _owner._childCount);