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)
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);
1379
if (
_childCount
> 0)
1381
node._children = new TreeNode[
_childCount
];
1382
for (int i = 0; i <
_childCount
; i++)
1422
if (!ignoreChildren &&
_childCount
> 0)
1425
for (int i = 0; i <
_childCount
; i++)
1614
else if (
_childCount
+ num > _children.Length)
1616
int newSize =
_childCount
+ num;
1619
newSize =
_childCount
* 2;
1623
Array.Copy(_children, 0, bigger, 0,
_childCount
);
1694
for (int i = 0; i <
_childCount
; i++)
1754
int total =
_childCount
;
1757
for (int i = 0; i <
_childCount
; i++)
1792
for (int i =
_childCount
; i > index; --i)
1915
for (int i =
_childCount
- 1; i >= 0; i--)
1949
for (int i = 0; i <
_childCount
; i++)
1958
for (int i = _index; i < _parent.
_childCount
- 1; ++i)
1964
_parent._children[_parent.
_childCount
- 1] = null;
2079
si.AddValue("ChildCount",
_childCount
);
2081
if (
_childCount
> 0)
2083
for (int i = 0; i <
_childCount
; i++)
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (10)
36
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner.
_childCount
);
43
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _owner.
_childCount
);
115
public int Count => _owner.
_childCount
;
225
_owner.Nodes.FixedIndex = _owner.
_childCount
;
336
node._index = _owner.
_childCount
;
467
if (index > _owner.
_childCount
)
469
index = _owner.
_childCount
;
585
if (_owner.
_childCount
> 0)
587
Array.Copy(_owner._children, 0, dest, index, _owner.
_childCount
);
625
return new ArraySubsetEnumerator(_owner._children, _owner.
_childCount
);