3 writes to childCount
System.Windows.Forms (3)
winforms\Managed\System\WinForms\TreeNode.cs (2)
1639
childCount
++;
1792
parent.
childCount
--;
winforms\Managed\System\WinForms\TreeNodeCollection.cs (1)
342
owner.
childCount
++;
47 references to childCount
System.Windows.Forms (47)
winforms\Managed\System\WinForms\TreeNode.cs (37)
433
if (
childCount
== 0) return null;
653
if (
childCount
== 0) return null;
654
return children[
childCount
-1];
1087
if (
childCount
> 0) {
1093
if (compare.Compare(children[
childCount
-1].Text, nodeText) <= 0)
1094
index =
childCount
;
1097
for (iMin = 0, iLim =
childCount
; iMin < iLim;) {
1111
for (iMin = 0, iLim =
childCount
; iMin < iLim;) {
1141
if (
childCount
> 0) {
1142
TreeNode[] newOrder = new TreeNode[
childCount
];
1146
for (int i = 0; i <
childCount
; i++) {
1148
for (int j = 0; j <
childCount
; j++) {
1170
for (int i = 0; i <
childCount
; i++) {
1172
for (int j = 0; j <
childCount
; j++) {
1233
if (tv != null &&
childCount
> MAX_TREENODES_OPS) {
1239
while(
childCount
> 0) {
1240
children[
childCount
- 1].Remove(true);
1300
if (
childCount
> 0) {
1301
node.children = new TreeNode[
childCount
];
1302
for (int i = 0; i <
childCount
; i++)
1336
if (!ignoreChildren &&
childCount
> 0) {
1338
for (int i = 0; i <
childCount
; i++) {
1510
else if (
childCount
+ num > children.Length) {
1511
int newSize =
childCount
+ num;
1513
newSize =
childCount
* 2;
1516
System.Array.Copy(children, 0, bigger, 0,
childCount
);
1582
for (int i = 0; i <
childCount
; i++) {
1618
int total =
childCount
;
1620
for (int i = 0; i <
childCount
; i++)
1635
for (int i =
childCount
; i > index; --i) {
1745
for (int i =
childCount
- 1; i >= 0; i--)
1780
for (int i = 0; i <
childCount
; i++)
1785
for (int i = index; i < parent.
childCount
-1; ++i) {
1791
parent.children[parent.
childCount
- 1] = null;
1874
si.AddValue("ChildCount",
childCount
);
1876
if (
childCount
> 0) {
1877
for (int i = 0; i <
childCount
; i++) {
winforms\Managed\System\WinForms\TreeNodeCollection.cs (10)
64
if (index < 0 || index >= owner.
childCount
) {
70
if (index < 0 || index >= owner.
childCount
)
125
return owner.
childCount
;
250
owner.Nodes.FixedIndex = owner.
childCount
;
339
node.index = owner.
childCount
;
471
if (index > owner.
childCount
) index = owner.
childCount
;
581
if (owner.
childCount
> 0) {
582
System.Array.Copy(owner.children, 0, dest, index, owner.
childCount
);
627
return new WindowsFormsUtils.ArraySubsetEnumerator(owner.children, owner.
childCount
);