1 implementation of _TextSegments
PresentationFramework (1)
src\Framework\System\Windows\Documents\TextRange.cs (1)
506
List<TextSegment> ITextRange.
_TextSegments
3 writes to _TextSegments
PresentationFramework (3)
src\Framework\System\Windows\Documents\TextRangeBase.cs (3)
1810
thisRange.
_TextSegments
= new List<TextSegment>(1);
2041
thisRange.
_TextSegments
= textSegments;
2087
thisRange.
_TextSegments
= textSegments;
41 references to _TextSegments
PresentationFramework (41)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
642
TextSegment textSegment = selection.
_TextSegments
[i];
src\Framework\System\Windows\Documents\TextRange.cs (1)
504
/// <see cref="ITextRange.
_TextSegments
"/>
src\Framework\System\Windows\Documents\TextRangeBase.cs (34)
90
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
92
if (thisRange.
_TextSegments
[i].Contains(textPointer))
162
if (thisRange.
_TextSegments
== null)
409
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
411
TextSegment textSegment = thisRange.
_TextSegments
[i];
478
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
480
TextSegment textSegment = thisRange.
_TextSegments
[i];
1205
Invariant.Assert(thisRange.
_TextSegments
!= null && thisRange.
_TextSegments
.Count > 0, "expecting nonempty _TextSegments array for Start position");
1206
return thisRange.
_TextSegments
[0].Start;
1213
Invariant.Assert(thisRange.
_TextSegments
!= null && thisRange.
_TextSegments
.Count > 0, "expecting nonempty _TextSegments array for End position");
1214
return thisRange.
_TextSegments
[thisRange.
_TextSegments
.Count - 1].End;
1224
(thisRange.
_TextSegments
.Count == 1 &&
1225
(object)thisRange.
_TextSegments
[0].Start == (object)thisRange.
_TextSegments
[0].End)
1230
return (thisRange.
_TextSegments
.Count == 1 &&
1231
(object)thisRange.
_TextSegments
[0].Start == (object)thisRange.
_TextSegments
[0].End);
1241
return thisRange.
_TextSegments
;
1280
for (int i = 0; i < thisRange.
_TextSegments
.Count; i++)
1284
textSegment = thisRange.
_TextSegments
[i];
1811
thisRange.
_TextSegments
.Add(new TextSegment(start, end));
1943
if (thisRange._ContentGeneration == thisRange.
_TextSegments
[0].Start.TextContainer.Generation)
1950
ITextPointer start = thisRange.
_TextSegments
[0].Start;
1951
ITextPointer end = thisRange.
_TextSegments
[thisRange.
_TextSegments
.Count - 1].End;
1955
Invariant.Assert(thisRange.
_TextSegments
[0].Start is TextPointer);
2005
thisRange._ContentGeneration = thisRange.
_TextSegments
[0].Start.TextContainer.Generation;
2070
ITextPointer finalStart = thisRange.
_TextSegments
[0].Start;
2071
ITextPointer finalEnd = thisRange.
_TextSegments
[thisRange.
_TextSegments
.Count - 1].End;
2096
thisRange._ContentGeneration = thisRange.
_TextSegments
[0].Start.TextContainer.Generation;
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
406
List<TextSegment> textSegments = range.
_TextSegments
;
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (4)
316
Invariant.Assert(textRange.
_TextSegments
.Count > 0);
317
return textRange.
_TextSegments
[0].Start.CompareTo(textRange.
_TextSegments
[textRange.
_TextSegments
.Count - 1].End) == 0;