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)
381
public TreeNode? FirstNode =>
_childCount
== 0 ? null : _children[0];
647
if (
_childCount
== 0)
652
return _children[
_childCount
- 1];
1131
if (
_childCount
> 0)
1138
if (compare.Compare(_children[
_childCount
- 1].Text, nodeText) <= 0)
1140
index =
_childCount
;
1145
for (iMin = 0, iLim =
_childCount
; iMin < iLim;)
1165
for (iMin = 0, iLim =
_childCount
; iMin < iLim;)
1195
if (
_childCount
<= 0)
1200
TreeNode[] newOrder = new TreeNode[
_childCount
];
1204
for (int i = 0; i <
_childCount
; i++)
1207
for (int j = 0; j <
_childCount
; j++)
1238
for (int i = 0; i <
_childCount
; i++)
1241
for (int j = 0; j <
_childCount
; j++)
1311
if (
_childCount
> MAX_TREENODES_OPS)
1318
while (
_childCount
> 0)
1320
_children[
_childCount
- 1].Remove(true);
1376
if (
_childCount
> 0)
1378
node._children = new TreeNode[
_childCount
];
1379
for (int i = 0; i <
_childCount
; i++)
1419
if (!ignoreChildren &&
_childCount
> 0)
1422
for (int i = 0; i <
_childCount
; i++)
1611
else if (
_childCount
+ num > _children.Length)
1613
int newSize =
_childCount
+ num;
1616
newSize =
_childCount
* 2;
1620
Array.Copy(_children, 0, bigger, 0,
_childCount
);
1691
for (int i = 0; i <
_childCount
; i++)
1751
int total =
_childCount
;
1754
for (int i = 0; i <
_childCount
; i++)
1789
for (int i =
_childCount
; i > index; --i)
1912
for (int i =
_childCount
- 1; i >= 0; i--)
1946
for (int i = 0; i <
_childCount
; i++)
1955
for (int i = _index; i < _parent.
_childCount
- 1; ++i)
1961
_parent._children[_parent.
_childCount
- 1] = null;
2074
si.AddValue("ChildCount",
_childCount
);
2076
if (
_childCount
> 0)
2078
for (int i = 0; i <
_childCount
; i++)
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (10)
35
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner.
_childCount
);
42
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner.
_childCount
);
114
public int Count => _owner.
_childCount
;
224
_owner.Nodes.FixedIndex = _owner.
_childCount
;
335
node._index = _owner.
_childCount
;
466
if (index > _owner.
_childCount
)
468
index = _owner.
_childCount
;
584
if (_owner.
_childCount
> 0)
586
Array.Copy(_owner._children, 0, dest, index, _owner.
_childCount
);
624
return new ArraySubsetEnumerator(_owner._children, _owner.
_childCount
);