4 writes to _size
PresentationCore (4)
System\Windows\Media\MatrixStack.cs (4)
78
_size
++;
116
_size
++;
146
_size
++;
163
_size
--;
24 references to _size
PresentationCore (24)
System\Windows\Media\MatrixStack.cs (24)
42
if (
_size
== _items.Length)
44
Matrix[] newItems = new Matrix[s_growFactor *
_size
];
45
Array.Copy(_items, newItems,
_size
);
61
if (combine && (
_size
> 0))
66
_items[
_size
] = matrix;
69
MatrixUtil.MultiplyMatrix(ref _items[
_size
], ref _items[
_size
- 1]);
75
_items[
_size
] = matrix;
82
_highWaterMark = Math.Max(_highWaterMark,
_size
);
101
if (combine && (
_size
> 0))
108
transform.MultiplyValueByMatrix(ref _items[
_size
], ref _items[
_size
- 1]);
113
_items[
_size
] = transform.Value;
120
_highWaterMark = Math.Max(_highWaterMark,
_size
);
131
if (combine && (
_size
> 0))
134
_items[
_size
] = _items[
_size
-1];
140
_items[
_size
] = Matrix.Identity;
144
MatrixUtil.PrependOffset(ref _items[
_size
], offset.X, offset.Y);
150
_highWaterMark = Math.Max(_highWaterMark,
_size
);
161
_items[
_size
-1] = new Matrix();
172
return _items[
_size
-1];
178
public bool IsEmpty { get { return
_size
== 0; } }
187
Debug.Assert(
_size
== 0); // The stack must be empty before this is called.