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