5 writes to _ranges
PresentationFramework (5)
MS\Internal\Documents\TextContainerHelper.cs (5)
31
_ranges
= null;
54
_ranges
= new int[_size * 2];
180
_ranges
= new int[8]; // 4 entries
268
_ranges
= ranges;
278
_ranges
= null;
48 references to _ranges
PresentationFramework (48)
MS\Internal\Documents\TextContainerHelper.cs (48)
52
Invariant.Assert(other.
_ranges
!= null);
53
Invariant.Assert(other.
_ranges
.Length >= (other._size * 2));
55
for (int i = 0; i <
_ranges
.Length; i++)
57
_ranges
[i] = other.
_ranges
[i];
72
Merge(other.
_ranges
[i * 2], other.
_ranges
[i * 2 + 1]);
101
_textContainer.CreatePointerAtOffset(
_ranges
[i * 2], LogicalDirection.Forward),
102
_textContainer.CreatePointerAtOffset(
_ranges
[i * 2 + 1], LogicalDirection.Backward),
132
if (cpPos >=
_ranges
[i * 2] && cpPos <=
_ranges
[i * 2 + 1])
137
if (cpPos ==
_ranges
[i * 2] && position.LogicalDirection == LogicalDirection.Backward ||
138
cpPos ==
_ranges
[i * 2 + 1] && position.LogicalDirection == LogicalDirection.Forward)
156
startPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpFirst :
_ranges
[0], LogicalDirection.Forward);
168
endPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpLast :
_ranges
[(_size - 1) * 2 + 1], LogicalDirection.Backward);
183
_ranges
[0] = _cpFirst;
184
_ranges
[1] = _cpLast;
185
_ranges
[2] = cpFirst;
186
_ranges
[3] = cpLast;
190
_ranges
[0] = cpFirst;
191
_ranges
[1] = cpLast;
192
_ranges
[2] = _cpFirst;
193
_ranges
[3] = _cpLast;
207
if (cpLast <
_ranges
[i * 2])
213
_ranges
[j + 2] =
_ranges
[j];
215
_ranges
[i * 2] = cpFirst;
216
_ranges
[i * 2 + 1] = cpLast;
220
else if (cpFirst <=
_ranges
[i * 2 + 1])
223
_ranges
[i * 2] = Math.Min(
_ranges
[i * 2], cpFirst);
224
_ranges
[i * 2 + 1] = Math.Max(
_ranges
[i * 2 + 1], cpLast);
234
_ranges
[_size * 2] = cpFirst;
235
_ranges
[_size * 2 + 1] = cpLast;
244
if (
_ranges
[pos * 2 + 1] >=
_ranges
[(pos + 1) * 2])
246
_ranges
[pos * 2 + 1] = Math.Max(
_ranges
[pos * 2 + 1],
_ranges
[(pos + 1) * 2 + 1]);
249
_ranges
[i] =
_ranges
[i + 2];
260
Invariant.Assert(
_ranges
!= null);
261
if (
_ranges
.Length < (_size + 1) * 2)
263
int[] ranges = new int[
_ranges
.Length * 2];
266
ranges[i] =
_ranges
[i];
275
_cpFirst =
_ranges
[0];
276
_cpLast =
_ranges
[1];