5 writes to _size
PresentationCore (5)
System\Windows\Media\VisualCollection.cs (5)
451
int addedPosition =
_size
++;
552
--
_size
;
648
_size
= 0;
703
_size
++;
773
_size
-= count;
28 references to _size
PresentationCore (28)
System\Windows\Media\VisualCollection.cs (28)
47
internal int InternalCount { get { return
_size
; } }
178
ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length -
_size
);
182
for (int i=0; i <
_size
; i++)
201
ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length -
_size
);
205
for (int i=0; i <
_size
; i++)
244
if (value <
_size
)
251
if (
_size
> 0)
254
Array.Copy(_items, 0, newItems, 0,
_size
);
261
Debug.Assert(
_size
== 0, "Size must be 0 here.");
317
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
325
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
447
if ((_items == null) || (
_size
== _items.Length))
449
EnsureCapacity(
_size
+1);
478
for (int i = 0; i <
_size
; i++)
540
for (int i = 0; i <
_size
; i++)
554
for (int i = indexToRemove; i <
_size
; i++)
561
_items[
_size
] = null;
612
for (int i=0; i <
_size
; i++)
639
for (int i=0; i <
_size
; i++)
681
ArgumentOutOfRangeException.ThrowIfGreaterThan(index,
_size
);
690
if ((_items == null) || (
_size
== _items.Length))
692
EnsureCapacity(
_size
+ 1);
695
for (int i =
_size
-1; i >= index; i--)
728
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
760
ArgumentOutOfRangeException.ThrowIfGreaterThan(count,
_size
- index);
774
for (int i = index; i <
_size
; i++)
803
newIndex = destination != null ? destination._parentIndex :
_size
;
807
Debug.Assert(newIndex >= 0 && newIndex <=
_size
, "New index is invalid");