5 writes to _ranges
PresentationFramework (5)
MS\Internal\Documents\TextContainerHelper.cs (5)
35
_ranges
= null;
58
_ranges
= new int[_size * 2];
184
_ranges
= new int[8]; // 4 entries
272
_ranges
= ranges;
282
_ranges
= null;
48 references to _ranges
PresentationFramework (48)
MS\Internal\Documents\TextContainerHelper.cs (48)
56
Invariant.Assert(other.
_ranges
!= null);
57
Invariant.Assert(other.
_ranges
.Length >= (other._size * 2));
59
for (int i = 0; i <
_ranges
.Length; i++)
61
_ranges
[i] = other.
_ranges
[i];
76
Merge(other.
_ranges
[i * 2], other.
_ranges
[i * 2 + 1]);
105
_textContainer.CreatePointerAtOffset(
_ranges
[i * 2], LogicalDirection.Forward),
106
_textContainer.CreatePointerAtOffset(
_ranges
[i * 2 + 1], LogicalDirection.Backward),
136
if (cpPos >=
_ranges
[i * 2] && cpPos <=
_ranges
[i * 2 + 1])
141
if (cpPos ==
_ranges
[i * 2] && position.LogicalDirection == LogicalDirection.Backward ||
142
cpPos ==
_ranges
[i * 2 + 1] && position.LogicalDirection == LogicalDirection.Forward)
160
startPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpFirst :
_ranges
[0], LogicalDirection.Forward);
172
endPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpLast :
_ranges
[(_size - 1) * 2 + 1], LogicalDirection.Backward);
187
_ranges
[0] = _cpFirst;
188
_ranges
[1] = _cpLast;
189
_ranges
[2] = cpFirst;
190
_ranges
[3] = cpLast;
194
_ranges
[0] = cpFirst;
195
_ranges
[1] = cpLast;
196
_ranges
[2] = _cpFirst;
197
_ranges
[3] = _cpLast;
211
if (cpLast <
_ranges
[i * 2])
217
_ranges
[j + 2] =
_ranges
[j];
219
_ranges
[i * 2] = cpFirst;
220
_ranges
[i * 2 + 1] = cpLast;
224
else if (cpFirst <=
_ranges
[i * 2 + 1])
227
_ranges
[i * 2] = Math.Min(
_ranges
[i * 2], cpFirst);
228
_ranges
[i * 2 + 1] = Math.Max(
_ranges
[i * 2 + 1], cpLast);
238
_ranges
[_size * 2] = cpFirst;
239
_ranges
[_size * 2 + 1] = cpLast;
248
if (
_ranges
[pos * 2 + 1] >=
_ranges
[(pos + 1) * 2])
250
_ranges
[pos * 2 + 1] = Math.Max(
_ranges
[pos * 2 + 1],
_ranges
[(pos + 1) * 2 + 1]);
253
_ranges
[i] =
_ranges
[i + 2];
264
Invariant.Assert(
_ranges
!= null);
265
if (
_ranges
.Length < (_size + 1) * 2)
267
int[] ranges = new int[
_ranges
.Length * 2];
270
ranges[i] =
_ranges
[i];
279
_cpFirst =
_ranges
[0];
280
_cpLast =
_ranges
[1];