5 writes to _ranges
PresentationFramework (5)
MS\Internal\Documents\TextContainerHelper.cs (5)
32
_ranges
= null;
55
_ranges
= new int[_size * 2];
181
_ranges
= new int[8]; // 4 entries
269
_ranges
= ranges;
279
_ranges
= null;
48 references to _ranges
PresentationFramework (48)
MS\Internal\Documents\TextContainerHelper.cs (48)
53
Invariant.Assert(other.
_ranges
!= null);
54
Invariant.Assert(other.
_ranges
.Length >= (other._size * 2));
56
for (int i = 0; i <
_ranges
.Length; i++)
58
_ranges
[i] = other.
_ranges
[i];
73
Merge(other.
_ranges
[i * 2], other.
_ranges
[i * 2 + 1]);
102
_textContainer.CreatePointerAtOffset(
_ranges
[i * 2], LogicalDirection.Forward),
103
_textContainer.CreatePointerAtOffset(
_ranges
[i * 2 + 1], LogicalDirection.Backward),
133
if (cpPos >=
_ranges
[i * 2] && cpPos <=
_ranges
[i * 2 + 1])
138
if (cpPos ==
_ranges
[i * 2] && position.LogicalDirection == LogicalDirection.Backward ||
139
cpPos ==
_ranges
[i * 2 + 1] && position.LogicalDirection == LogicalDirection.Forward)
157
startPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpFirst :
_ranges
[0], LogicalDirection.Forward);
169
endPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpLast :
_ranges
[(_size - 1) * 2 + 1], LogicalDirection.Backward);
184
_ranges
[0] = _cpFirst;
185
_ranges
[1] = _cpLast;
186
_ranges
[2] = cpFirst;
187
_ranges
[3] = cpLast;
191
_ranges
[0] = cpFirst;
192
_ranges
[1] = cpLast;
193
_ranges
[2] = _cpFirst;
194
_ranges
[3] = _cpLast;
208
if (cpLast <
_ranges
[i * 2])
214
_ranges
[j + 2] =
_ranges
[j];
216
_ranges
[i * 2] = cpFirst;
217
_ranges
[i * 2 + 1] = cpLast;
221
else if (cpFirst <=
_ranges
[i * 2 + 1])
224
_ranges
[i * 2] = Math.Min(
_ranges
[i * 2], cpFirst);
225
_ranges
[i * 2 + 1] = Math.Max(
_ranges
[i * 2 + 1], cpLast);
235
_ranges
[_size * 2] = cpFirst;
236
_ranges
[_size * 2 + 1] = cpLast;
245
if (
_ranges
[pos * 2 + 1] >=
_ranges
[(pos + 1) * 2])
247
_ranges
[pos * 2 + 1] = Math.Max(
_ranges
[pos * 2 + 1],
_ranges
[(pos + 1) * 2 + 1]);
250
_ranges
[i] =
_ranges
[i + 2];
261
Invariant.Assert(
_ranges
!= null);
262
if (
_ranges
.Length < (_size + 1) * 2)
264
int[] ranges = new int[
_ranges
.Length * 2];
267
ranges[i] =
_ranges
[i];
276
_cpFirst =
_ranges
[0];
277
_cpLast =
_ranges
[1];