5 writes to _size
PresentationCore (5)
System\Windows\Media\VisualCollection.cs (5)
476
int addedPosition =
_size
++;
577
--
_size
;
676
_size
= 0;
734
_size
++;
804
_size
-= count;
28 references to _size
PresentationCore (28)
System\Windows\Media\VisualCollection.cs (28)
67
internal int InternalCount { get { return
_size
; } }
198
ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length -
_size
);
202
for (int i=0; i <
_size
; i++)
221
ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length -
_size
);
225
for (int i=0; i <
_size
; i++)
264
if (value <
_size
)
271
if (
_size
> 0)
274
Array.Copy(_items, 0, newItems, 0,
_size
);
281
Debug.Assert(
_size
== 0, "Size must be 0 here.");
341
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
350
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
472
if ((_items == null) || (
_size
== _items.Length))
474
EnsureCapacity(
_size
+1);
503
for (int i = 0; i <
_size
; i++)
565
for (int i = 0; i <
_size
; i++)
579
for (int i = indexToRemove; i <
_size
; i++)
589
_items[
_size
] = null;
640
for (int i=0; i <
_size
; i++)
667
for (int i=0; i <
_size
; i++)
709
ArgumentOutOfRangeException.ThrowIfGreaterThan(index,
_size
);
718
if ((_items == null) || (
_size
== _items.Length))
720
EnsureCapacity(
_size
+ 1);
723
for (int i =
_size
-1; i >= index; i--)
759
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
791
ArgumentOutOfRangeException.ThrowIfGreaterThan(count,
_size
- index);
805
for (int i = index; i <
_size
; i++)
837
newIndex = destination != null ? destination._parentIndex :
_size
;
841
Debug.Assert(newIndex >= 0 && newIndex <=
_size
, "New index is invalid");