3 writes to _childCount
System.Windows.Forms (3)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
1795_childCount++; 1963_parent._childCount--;
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
339_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); 1376if (_childCount > 0) 1378node._children = new TreeNode[_childCount]; 1379for (int i = 0; i < _childCount; i++) 1419if (!ignoreChildren && _childCount > 0) 1422for (int i = 0; i < _childCount; i++) 1611else if (_childCount + num > _children.Length) 1613int newSize = _childCount + num; 1616newSize = _childCount * 2; 1620Array.Copy(_children, 0, bigger, 0, _childCount); 1691for (int i = 0; i < _childCount; i++) 1751int total = _childCount; 1754for (int i = 0; i < _childCount; i++) 1789for (int i = _childCount; i > index; --i) 1912for (int i = _childCount - 1; i >= 0; i--) 1946for (int i = 0; i < _childCount; i++) 1955for (int i = _index; i < _parent._childCount - 1; ++i) 1961_parent._children[_parent._childCount - 1] = null; 2074si.AddValue("ChildCount", _childCount); 2076if (_childCount > 0) 2078for (int i = 0; i < _childCount; i++)
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (10)
35ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner._childCount); 42ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner._childCount); 114public int Count => _owner._childCount; 224_owner.Nodes.FixedIndex = _owner._childCount; 335node._index = _owner._childCount; 466if (index > _owner._childCount) 468index = _owner._childCount; 584if (_owner._childCount > 0) 586Array.Copy(_owner._children, 0, dest, index, _owner._childCount); 624return new ArraySubsetEnumerator(_owner._children, _owner._childCount);