1 implementation of _TextSegments
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
513
List<TextSegment> ITextRange.
_TextSegments
3 writes to _TextSegments
PresentationFramework (3)
System\Windows\Documents\TextRangeBase.cs (3)
1779
thisRange.
_TextSegments
= new List<TextSegment>(1);
2010
thisRange.
_TextSegments
= textSegments;
2056
thisRange.
_TextSegments
= textSegments;
41 references to _TextSegments
PresentationFramework (41)
System\windows\Documents\TextEditorDragDrop.cs (1)
613
TextSegment textSegment = selection.
_TextSegments
[i];
System\Windows\Documents\TextRange.cs (1)
511
/// <see cref="ITextRange.
_TextSegments
"/>
System\Windows\Documents\TextRangeBase.cs (34)
82
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
84
if (thisRange.
_TextSegments
[i].Contains(textPointer))
154
if (thisRange.
_TextSegments
== null)
395
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
397
TextSegment textSegment = thisRange.
_TextSegments
[i];
464
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
466
TextSegment textSegment = thisRange.
_TextSegments
[i];
1191
Invariant.Assert(thisRange.
_TextSegments
!= null && thisRange.
_TextSegments
.Count > 0, "expecting nonempty _TextSegments array for Start position");
1192
return thisRange.
_TextSegments
[0].Start;
1199
Invariant.Assert(thisRange.
_TextSegments
!= null && thisRange.
_TextSegments
.Count > 0, "expecting nonempty _TextSegments array for End position");
1200
return thisRange.
_TextSegments
[thisRange.
_TextSegments
.Count - 1].End;
1210
(thisRange.
_TextSegments
.Count == 1 &&
1211
(object)thisRange.
_TextSegments
[0].Start == (object)thisRange.
_TextSegments
[0].End)
1216
return (thisRange.
_TextSegments
.Count == 1 &&
1217
(object)thisRange.
_TextSegments
[0].Start == (object)thisRange.
_TextSegments
[0].End);
1227
return thisRange.
_TextSegments
;
1266
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
1270
textSegment = thisRange.
_TextSegments
[i];
1780
thisRange.
_TextSegments
.Add(new TextSegment(start, end));
1912
if (thisRange._ContentGeneration == thisRange.
_TextSegments
[0].Start.TextContainer.Generation)
1919
ITextPointer start = thisRange.
_TextSegments
[0].Start;
1920
ITextPointer end = thisRange.
_TextSegments
[thisRange.
_TextSegments
.Count - 1].End;
1924
Invariant.Assert(thisRange.
_TextSegments
[0].Start is TextPointer);
1974
thisRange._ContentGeneration = thisRange.
_TextSegments
[0].Start.TextContainer.Generation;
2039
ITextPointer finalStart = thisRange.
_TextSegments
[0].Start;
2040
ITextPointer finalEnd = thisRange.
_TextSegments
[thisRange.
_TextSegments
.Count - 1].End;
2065
thisRange._ContentGeneration = thisRange.
_TextSegments
[0].Start.TextContainer.Generation;
System\Windows\Documents\TextRangeEditTables.cs (1)
401
List<TextSegment> textSegments = range.
_TextSegments
;
System\windows\Documents\TextSelectionHighlightLayer.cs (4)
308
Invariant.Assert(textRange.
_TextSegments
.Count > 0);
309
return textRange.
_TextSegments
[0].Start.CompareTo(textRange.
_TextSegments
[textRange.
_TextSegments
.Count - 1].End) == 0;