5 writes to _ranges
PresentationFramework (5)
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (5)
40
_ranges
= null;
63
_ranges
= new int[_size * 2];
189
_ranges
= new int[8]; // 4 entries
277
_ranges
= ranges;
287
_ranges
= null;
48 references to _ranges
PresentationFramework (48)
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (48)
61
Invariant.Assert(other.
_ranges
!= null);
62
Invariant.Assert(other.
_ranges
.Length >= (other._size * 2));
64
for (int i = 0; i <
_ranges
.Length; i++)
66
_ranges
[i] = other.
_ranges
[i];
81
Merge(other.
_ranges
[i * 2], other.
_ranges
[i * 2 + 1]);
110
_textContainer.CreatePointerAtOffset(
_ranges
[i * 2], LogicalDirection.Forward),
111
_textContainer.CreatePointerAtOffset(
_ranges
[i * 2 + 1], LogicalDirection.Backward),
141
if (cpPos >=
_ranges
[i * 2] && cpPos <=
_ranges
[i * 2 + 1])
146
if (cpPos ==
_ranges
[i * 2] && position.LogicalDirection == LogicalDirection.Backward ||
147
cpPos ==
_ranges
[i * 2 + 1] && position.LogicalDirection == LogicalDirection.Forward)
165
startPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpFirst :
_ranges
[0], LogicalDirection.Forward);
177
endPosition = _textContainer.CreatePointerAtOffset(IsSimple ? _cpLast :
_ranges
[(_size - 1) * 2 + 1], LogicalDirection.Backward);
192
_ranges
[0] = _cpFirst;
193
_ranges
[1] = _cpLast;
194
_ranges
[2] = cpFirst;
195
_ranges
[3] = cpLast;
199
_ranges
[0] = cpFirst;
200
_ranges
[1] = cpLast;
201
_ranges
[2] = _cpFirst;
202
_ranges
[3] = _cpLast;
216
if (cpLast <
_ranges
[i * 2])
222
_ranges
[j + 2] =
_ranges
[j];
224
_ranges
[i * 2] = cpFirst;
225
_ranges
[i * 2 + 1] = cpLast;
229
else if (cpFirst <=
_ranges
[i * 2 + 1])
232
_ranges
[i * 2] = Math.Min(
_ranges
[i * 2], cpFirst);
233
_ranges
[i * 2 + 1] = Math.Max(
_ranges
[i * 2 + 1], cpLast);
243
_ranges
[_size * 2] = cpFirst;
244
_ranges
[_size * 2 + 1] = cpLast;
253
if (
_ranges
[pos * 2 + 1] >=
_ranges
[(pos + 1) * 2])
255
_ranges
[pos * 2 + 1] = Math.Max(
_ranges
[pos * 2 + 1],
_ranges
[(pos + 1) * 2 + 1]);
258
_ranges
[i] =
_ranges
[i + 2];
269
Invariant.Assert(
_ranges
!= null);
270
if (
_ranges
.Length < (_size + 1) * 2)
272
int[] ranges = new int[
_ranges
.Length * 2];
275
ranges[i] =
_ranges
[i];
284
_cpFirst =
_ranges
[0];
285
_cpLast =
_ranges
[1];