1 implementation of _TextSegments
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
516
List<TextSegment> ITextRange.
_TextSegments
3 writes to _TextSegments
PresentationFramework (3)
System\Windows\Documents\TextRangeBase.cs (3)
1782
thisRange.
_TextSegments
= new List<TextSegment>(1);
2013
thisRange.
_TextSegments
= textSegments;
2059
thisRange.
_TextSegments
= textSegments;
41 references to _TextSegments
PresentationFramework (41)
System\windows\Documents\TextEditorDragDrop.cs (1)
630
TextSegment textSegment = selection.
_TextSegments
[i];
System\Windows\Documents\TextRange.cs (1)
514
/// <see cref="ITextRange.
_TextSegments
"/>
System\Windows\Documents\TextRangeBase.cs (34)
85
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
87
if (thisRange.
_TextSegments
[i].Contains(textPointer))
157
if (thisRange.
_TextSegments
== null)
398
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
400
TextSegment textSegment = thisRange.
_TextSegments
[i];
467
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
469
TextSegment textSegment = thisRange.
_TextSegments
[i];
1194
Invariant.Assert(thisRange.
_TextSegments
!= null && thisRange.
_TextSegments
.Count > 0, "expecting nonempty _TextSegments array for Start position");
1195
return thisRange.
_TextSegments
[0].Start;
1202
Invariant.Assert(thisRange.
_TextSegments
!= null && thisRange.
_TextSegments
.Count > 0, "expecting nonempty _TextSegments array for End position");
1203
return thisRange.
_TextSegments
[thisRange.
_TextSegments
.Count - 1].End;
1213
(thisRange.
_TextSegments
.Count == 1 &&
1214
(object)thisRange.
_TextSegments
[0].Start == (object)thisRange.
_TextSegments
[0].End)
1219
return (thisRange.
_TextSegments
.Count == 1 &&
1220
(object)thisRange.
_TextSegments
[0].Start == (object)thisRange.
_TextSegments
[0].End);
1230
return thisRange.
_TextSegments
;
1269
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
1273
textSegment = thisRange.
_TextSegments
[i];
1783
thisRange.
_TextSegments
.Add(new TextSegment(start, end));
1915
if (thisRange._ContentGeneration == thisRange.
_TextSegments
[0].Start.TextContainer.Generation)
1922
ITextPointer start = thisRange.
_TextSegments
[0].Start;
1923
ITextPointer end = thisRange.
_TextSegments
[thisRange.
_TextSegments
.Count - 1].End;
1927
Invariant.Assert(thisRange.
_TextSegments
[0].Start is TextPointer);
1977
thisRange._ContentGeneration = thisRange.
_TextSegments
[0].Start.TextContainer.Generation;
2042
ITextPointer finalStart = thisRange.
_TextSegments
[0].Start;
2043
ITextPointer finalEnd = thisRange.
_TextSegments
[thisRange.
_TextSegments
.Count - 1].End;
2068
thisRange._ContentGeneration = thisRange.
_TextSegments
[0].Start.TextContainer.Generation;
System\Windows\Documents\TextRangeEditTables.cs (1)
403
List<TextSegment> textSegments = range.
_TextSegments
;
System\windows\Documents\TextSelectionHighlightLayer.cs (4)
310
Invariant.Assert(textRange.
_TextSegments
.Count > 0);
311
return textRange.
_TextSegments
[0].Start.CompareTo(textRange.
_TextSegments
[textRange.
_TextSegments
.Count - 1].End) == 0;