5 writes to _size
PresentationCore (5)
System\Windows\Media\VisualCollection.cs (5)
462
int addedPosition =
_size
++;
563
--
_size
;
662
_size
= 0;
720
_size
++;
790
_size
-= count;
28 references to _size
PresentationCore (28)
System\Windows\Media\VisualCollection.cs (28)
53
internal int InternalCount { get { return
_size
; } }
184
ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length -
_size
);
188
for (int i=0; i <
_size
; i++)
207
ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length -
_size
);
211
for (int i=0; i <
_size
; i++)
250
if (value <
_size
)
257
if (
_size
> 0)
260
Array.Copy(_items, 0, newItems, 0,
_size
);
267
Debug.Assert(
_size
== 0, "Size must be 0 here.");
327
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
336
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
458
if ((_items == null) || (
_size
== _items.Length))
460
EnsureCapacity(
_size
+1);
489
for (int i = 0; i <
_size
; i++)
551
for (int i = 0; i <
_size
; i++)
565
for (int i = indexToRemove; i <
_size
; i++)
575
_items[
_size
] = null;
626
for (int i=0; i <
_size
; i++)
653
for (int i=0; i <
_size
; i++)
695
ArgumentOutOfRangeException.ThrowIfGreaterThan(index,
_size
);
704
if ((_items == null) || (
_size
== _items.Length))
706
EnsureCapacity(
_size
+ 1);
709
for (int i =
_size
-1; i >= index; i--)
745
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index,
_size
);
777
ArgumentOutOfRangeException.ThrowIfGreaterThan(count,
_size
- index);
791
for (int i = index; i <
_size
; i++)
823
newIndex = destination != null ? destination._parentIndex :
_size
;
827
Debug.Assert(newIndex >= 0 && newIndex <=
_size
, "New index is invalid");