189 references to Start
PresentationFramework (189)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
107ITextPointer startPointer = segment.Start.CreatePointer(LogicalDirection.Forward); 136pageEl.Add(new FixedPageProxy(segment.Start.TextContainer.Parent, startPage + i)); 610start = textView.TextSegments[0].Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
432ITextPointer start = segment.Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
530if (elementStart.CompareTo(segment.Start) >= 0) 537startOffset = elementStart.GetOffsetToPosition(segment.Start);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
245ITextPointer start = segments[0].Start;
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (34)
129ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 180ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 208ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 252if ((highlightSegment.Segment.Start.CompareTo(textPosition) > 0) || 253((highlightSegment.Segment.Start.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward))) 363if (highlightSegment.Segment.Start.CompareTo(rangeSegment.Start) <= 0) 365if (highlightSegment.Segment.End.CompareTo(rangeSegment.Start) > 0) 370IList<HighlightSegment> res = highlightSegment.Split(rangeSegment.Start, rangeSegment.End, highlightRange); 386(rangeSegment.End.CompareTo(rangeEnumerator.Current.Start) <= 0), 398invalidateStart = highlightSegment.Segment.Start; 410invalidateStart = rangeSegment.Start; 412if (rangeSegment.End.CompareTo(highlightSegment.Segment.Start) > 0) 415HighlightSegment temp = new HighlightSegment(rangeSegment.Start, highlightSegment.Segment.Start, highlightRange); 419rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End); 425_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 436invalidateStart = rangeSegment.Start; 437_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 443_segments.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange)); 464if (pos.CompareTo(highlightSegment.Segment.Start) >= 0) 471return highlightSegment.Segment.Start; 490if (pos.CompareTo(highlightSegment.Segment.Start) > 0) 491return highlightSegment.Segment.Start; 510if (highlightSegment.Segment.Start.CompareTo(start) == 0) 770if ((ps.CompareTo(_segment.Start) == 0) || (ps.CompareTo(_segment.End) == 0)) 772if (((ps.CompareTo(_segment.Start) == 0) && (side == LogicalDirection.Forward)) || 782res.Add(new HighlightSegment(_segment.Start, ps, _owners)); 806if ((_segment.Start.CompareTo(ps1) > 0) || (_segment.End.CompareTo(ps1) < 0)) 809if (_segment.Start.CompareTo(ps1) < 0) 811res.Add(new HighlightSegment(_segment.Start, ps1, _owners)); 863else if ((res[0].Segment.Start.CompareTo(ps1) == 0) || 959pageGeometry = view.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End); 993ITextPointer cursor = _segment.Start.CreatePointer();
MS\Internal\Annotations\TextAnchor.cs (33)
56_segments.Add(new TextSegment(segment.Start, segment.End)); 178if ((_segments[i].Start.CompareTo(other._segments[i].Start) != 0) || 210if (theirSegment.Start.CompareTo(theirSegment.End) == 0) 218if ((ourSegment.Start.CompareTo(theirSegment.Start) == 0) && 219(theirSegment.Start.LogicalDirection == LogicalDirection.Forward)) 230if (ourSegment.Start.CompareTo(theirSegment.End) >= 0) 237if (ourSegment.End.CompareTo(theirSegment.Start) <= 0) 295Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 302if (current.Start.CompareTo(otherSegment.End) >= 0) 309if (current.Start.CompareTo(otherSegment.Start) >= 0) 332if (current.End.CompareTo(otherSegment.Start) > 0) 334anchor._segments[currentIndex] = CreateNormalizedSegment(current.Start, otherSegment.Start); 397Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 403if (currentSegment.Start.CompareTo(otherSegment.End) >= 0) 410if (currentSegment.End.CompareTo(otherSegment.Start) <= 0) 421if (currentSegment.Start.CompareTo(otherSegment.Start) < 0) 423anchor._segments[current] = CreateNormalizedSegment(otherSegment.Start, currentSegment.End); 432anchor._segments[current] = CreateNormalizedSegment(currentSegment.Start, otherSegment.End); 511return _segments.Count > 0 ? _segments[0].Start : null; 534return (_segments.Count == 1 && (object)_segments[0].Start == (object)_segments[0].End); 551textBuffer.Append(TextRangeBase.GetTextInternal(_segments[i].Start, _segments[i].End)); 606if (segment.Start.CompareTo(segment.End) >= 0) 633if (newSegment.Start.CompareTo(_segments[i].Start) < 0) 638if (i > 0 && newSegment.Start.CompareTo(_segments[i - 1].End) < 0) 642if (i < _segments.Count && newSegment.End.CompareTo(_segments[i].Start) > 0) 793int retVal = x.Start.CompareTo(y.Start);
MS\Internal\Documents\DocumentViewerHelper.cs (3)
148startPointer = !findToolBar.SearchUp ? textSegment.Start : textSegment.End; 154if (textSegment.Start.CompareTo(startPointer) < 0) 157startPointer = textSegment.Start;
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
399position = textView.TextSegments[0].Start;
MS\Internal\Documents\HostedElements.cs (6)
82if (_textSegments[0].Start is TextPointer) 84_currentPosition = new TextPointer(_textSegments[0].Start as TextPointer); 97Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 && 108Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0); 127if (_textSegments[_currentTextSegment].Start is TextPointer) 129_currentPosition = new TextPointer(_textSegments[_currentTextSegment].Start as TextPointer);
MS\Internal\Documents\MultiPageTextView.cs (2)
163ITextPointer startPositionInTextSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start;
MS\Internal\Documents\TextBoxView.cs (2)
1489int positionsCovered = segment.End.Offset - segment.Start.Offset; 1490DirtyTextRange dirtyTextRange = new DirtyTextRange(segment.Start.Offset, positionsCovered, positionsCovered, fromHighlightLayer: true);
MS\Internal\Documents\TextDocumentView.cs (6)
155ITextPointer startPositionInThisSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start; 475if (segment.Start.CompareTo(position) < 0 && segment.End.CompareTo(position) > 0) 480if (segment.Start.CompareTo(position) == 0) 492if (segment.Start.LogicalDirection == LogicalDirection.Backward) 526contains = (position.TextContainer.Start.CompareTo(segments[0].Start) == 0);
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
995if (((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].Start) >= 0 &&
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
801masterPointer = startOfPage ? textSegment.Start : textSegment.End; 807if (textSegment.Start.CompareTo(masterPointer) < 0) 810masterPointer = textSegment.Start;
System\Windows\Controls\TextAdaptor.cs (5)
104if (!textView.Contains(start) && start.CompareTo(textSegments[0].Start) < 0) 106start = textSegments[0].Start.CreatePointer(); 141ITextPointer first = (lineRange.Start.CompareTo(start) <= 0) ? start : lineRange.Start; 554ranges[i] = new TextRangeAdaptor(this, visibleTextSegments[i].Start, visibleTextSegments[i].End, _textPeer);
System\Windows\Controls\TextBox.cs (1)
1449textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).GetLineRange(textPointer).Start.CreatePointer(textPointer.LogicalDirection);
System\Windows\Controls\TextRangeAdaptor.cs (10)
608if (_start.CompareTo(lineRange.Start) != 0) 610_start = lineRange.Start.CreatePointer(); 681if (_start.CompareTo(textSegments[0].Start) != 0) 683_start = textSegments[0].Start.CreatePointer(); 805nextLineStart = lineRange.Start; 826previousLineEnd = textView.GetPositionAtNextLine(lineRange.Start, Double.NaN, -1, out newSuggestedX, out linesMoved); 836previousLineEnd = lineRange.Start; 939while (position.CompareTo(textSegments[0].Start) != 0) 943position.MoveToPosition(textSegments[0].Start); 1147position.MoveToPosition(textSegments[0].Start);
System\windows\Documents\CaretElement.cs (1)
469Geometry geometry = _textEditor.Selection.TextView.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End);
System\Windows\Documents\CompositionAdorner.cs (2)
591if (startLinePointer.CompareTo(textSegment.Start) < 0) 594startLinePointer = textSegment.Start;
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
713Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 745tsScan = (DocumentSequenceTextPointer)ts.Start;
System\Windows\Documents\DocumentSequenceTextView.cs (2)
376tpStart = new DocumentSequenceTextPointer(ChildBlock, childTR.Start); 567ptpStart = this._docPage.FixedDocumentSequence.TextContainer.MapChildPositionToParent(segment.Start);
System\Windows\Documents\FixedDocument.cs (2)
1044Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 1150int startPage = this.FixedContainer.GetPageNumber(textSegment.Start);
System\Windows\Documents\FlowDocument.cs (4)
1423_formatter.OnContentInvalidated(false, textSegment.Start, textSegment.End); 1427DirtyTextRange dtr = new DirtyTextRange(textSegment.Start.Offset, 1428textSegment.Start.GetOffsetToPosition(textSegment.End), 1429textSegment.Start.GetOffsetToPosition(textSegment.End)
System\windows\Documents\TextEditorCharacters.cs (1)
163startResetFormatPosition = (TextPointer)autoWordRange.Start;
System\windows\Documents\TextEditorDragDrop.cs (3)
489string wordText = TextRangeBase.GetTextInternal(wordSegment.Start, wordSegment.End); 490int indexInWord = wordSegment.Start.GetOffsetToPosition(dropPosition); 491dropPosition = (indexInWord < (wordText.Length / 2)) ? wordSegment.Start : wordSegment.End;
System\windows\Documents\TextEditorSelection.cs (5)
137ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 818ITextPointer caretPosition = lineRange.Start.GetFrozenPointer(LogicalDirection.Forward); 1618ExtendSelectionAndBringIntoView(lineRange.Start.CreatePointer(LogicalDirection.Forward), This); 1678if (!lineRange.IsNull && anchorLineRange.Start.CompareTo(This.Selection.AnchorPosition) == 0) 2374return lineRange.IsNull ? position : lineRange.Start;
System\Windows\Documents\TextPointer.cs (1)
1625if (position.CompareTo((TextPointer)lineRange.Start) <= 0)
System\Windows\Documents\TextPointerBase.cs (3)
700? position.CompareTo(lineSegment.Start) == 0 840thisPointer.MoveToPosition(lineRange.Start); 841thisPointer.SetLogicalDirection(lineRange.Start.LogicalDirection);
System\Windows\Documents\TextRange.cs (6)
386return _textSegments[0].Start is TextPointer; 1644TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1648TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1653TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1665(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft) 1670TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
System\Windows\Documents\TextRangeBase.cs (15)
199TextRangeBase.Select(thisRange, wordRange.Start, wordRange.End); 216string autoWord = TextRangeBase.GetTextInternal(autoWordRange.Start, autoWordRange.End).TrimEnd(' '); 218string textFromWordStart = TextRangeBase.GetTextInternal(autoWordRange.Start, thisRange.Start); 402ITextPointer position = textSegment.Start.CreatePointer(); 471ITextPointer position = textSegment.Start.CreatePointer(); 1195return thisRange._TextSegments[0].Start; 1214(object)thisRange._TextSegments[0].Start == (object)thisRange._TextSegments[0].End) 1220(object)thisRange._TextSegments[0].Start == (object)thisRange._TextSegments[0].End); 1275text += TextRangeBase.GetTextInternal(textSegment.Start, textSegment.End); 1915if (thisRange._ContentGeneration == thisRange._TextSegments[0].Start.TextContainer.Generation) 1922ITextPointer start = thisRange._TextSegments[0].Start; 1927Invariant.Assert(thisRange._TextSegments[0].Start is TextPointer); 1977thisRange._ContentGeneration = thisRange._TextSegments[0].Start.TextContainer.Generation; 2042ITextPointer finalStart = thisRange._TextSegments[0].Start; 2068thisRange._ContentGeneration = thisRange._TextSegments[0].Start.TextContainer.Generation;
System\Windows\Documents\TextRangeEditTables.cs (6)
57if (table != GetTableFromPosition((TextPointer)range.TextSegments[0].Start)) 62TableCell firstCell = GetTableCellFromPosition((TextPointer)range.TextSegments[0].Start); 411if (segment.Start.CompareTo(segment.End) != 0) 415start = segment.Start; 423start = textSegments[0].Start; 1076TableCell cell = GetTableCellFromPosition((TextPointer)textSegment.Start);
System\Windows\Documents\TextRangeSerialization.cs (4)
359ITextPointer pointer = textSegment.Start.CreatePointer(); 368ITextRange textRange = new TextRange(textSegment.Start, textSegment.End); 370elementLevel += WriteOpeningTags(textRange, textSegment.Start, pointer, xmlWriter, xamlTypeMapper, /*reduceElement:*/wpfPayload == null, out ignoreWriteHyperlinkEnd, ref ignoreList, preserveTextElements); 374WriteXamlTextSegment(xmlWriter, textSegment.Start, textSegment.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements);
System\windows\Documents\TextSelection.cs (7)
431movingPosition = thisSelection.TextSegments[thisSelection.TextSegments.Count - 1].Start; 841if (anchorWordRange.Start.CompareTo(cursorWordRange.Start) <= 0) 843startPosition = anchorWordRange.Start.GetFrozenPointer(LogicalDirection.Forward); 849movingPosition = cursorWordRange.Start.GetFrozenPointer(LogicalDirection.Forward); 1299new TextRange(autoWordRange.Start, autoWordRange.End).ApplyPropertyValue(formattingProperty, value); 1920else if (movingPosition.CompareTo(thisSelection.TextSegments[thisSelection.TextSegments.Count-1].Start) == 0)
System\windows\Documents\TextSelectionHighlightLayer.cs (9)
92if ((direction == LogicalDirection.Forward && textSegment.Start.CompareTo(textPosition) <= 0 && textPosition.CompareTo(textSegment.End) < 0) || // 93(direction == LogicalDirection.Backward && textSegment.Start.CompareTo(textPosition) < 0 && textPosition.CompareTo(textSegment.End) <= 0)) 137if (textSegment.Start.CompareTo(textSegment.End) != 0) 139if (textPosition.CompareTo(textSegment.Start) < 0) 141transitionPosition = textSegment.Start.CreateStaticPointer(); 158if (textSegment.Start.CompareTo(textSegment.End) != 0) 165else if (textPosition.CompareTo(textSegment.Start) > 0) 167transitionPosition = textSegment.Start.CreateStaticPointer(); 311return textRange._TextSegments[0].Start.CompareTo(textRange._TextSegments[textRange._TextSegments.Count - 1].End) == 0;
System\Windows\Documents\TextStore.cs (2)
1094ITextPointer start = (lineRange.Start.CompareTo(startPointer) <= 0) ? startPointer : lineRange.Start;