189 references to Start
PresentationFramework (189)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
96ITextPointer startPointer = segment.Start.CreatePointer(LogicalDirection.Forward); 125pageEl.Add(new FixedPageProxy(segment.Start.TextContainer.Parent, startPage + i)); 599start = textView.TextSegments[0].Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
423ITextPointer start = segment.Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
520if (elementStart.CompareTo(segment.Start) >= 0) 527startOffset = elementStart.GetOffsetToPosition(segment.Start);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
233ITextPointer start = segments[0].Start;
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (34)
122ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 173ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 201ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 245if ((highlightSegment.Segment.Start.CompareTo(textPosition) > 0) || 246((highlightSegment.Segment.Start.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward))) 356if (highlightSegment.Segment.Start.CompareTo(rangeSegment.Start) <= 0) 358if (highlightSegment.Segment.End.CompareTo(rangeSegment.Start) > 0) 363IList<HighlightSegment> res = highlightSegment.Split(rangeSegment.Start, rangeSegment.End, highlightRange); 379(rangeSegment.End.CompareTo(rangeEnumerator.Current.Start) <= 0), 391invalidateStart = highlightSegment.Segment.Start; 403invalidateStart = rangeSegment.Start; 405if (rangeSegment.End.CompareTo(highlightSegment.Segment.Start) > 0) 408HighlightSegment temp = new HighlightSegment(rangeSegment.Start, highlightSegment.Segment.Start, highlightRange); 412rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End); 418_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 429invalidateStart = rangeSegment.Start; 430_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 436_segments.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange)); 457if (pos.CompareTo(highlightSegment.Segment.Start) >= 0) 464return highlightSegment.Segment.Start; 483if (pos.CompareTo(highlightSegment.Segment.Start) > 0) 484return highlightSegment.Segment.Start; 503if (highlightSegment.Segment.Start.CompareTo(start) == 0) 763if ((ps.CompareTo(_segment.Start) == 0) || (ps.CompareTo(_segment.End) == 0)) 765if (((ps.CompareTo(_segment.Start) == 0) && (side == LogicalDirection.Forward)) || 775res.Add(new HighlightSegment(_segment.Start, ps, _owners)); 799if ((_segment.Start.CompareTo(ps1) > 0) || (_segment.End.CompareTo(ps1) < 0)) 802if (_segment.Start.CompareTo(ps1) < 0) 804res.Add(new HighlightSegment(_segment.Start, ps1, _owners)); 856else if ((res[0].Segment.Start.CompareTo(ps1) == 0) || 952pageGeometry = view.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End); 986ITextPointer cursor = _segment.Start.CreatePointer();
MS\Internal\Annotations\TextAnchor.cs (33)
53_segments.Add(new TextSegment(segment.Start, segment.End)); 175if ((_segments[i].Start.CompareTo(other._segments[i].Start) != 0) || 207if (theirSegment.Start.CompareTo(theirSegment.End) == 0) 215if ((ourSegment.Start.CompareTo(theirSegment.Start) == 0) && 216(theirSegment.Start.LogicalDirection == LogicalDirection.Forward)) 227if (ourSegment.Start.CompareTo(theirSegment.End) >= 0) 234if (ourSegment.End.CompareTo(theirSegment.Start) <= 0) 292Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 299if (current.Start.CompareTo(otherSegment.End) >= 0) 306if (current.Start.CompareTo(otherSegment.Start) >= 0) 329if (current.End.CompareTo(otherSegment.Start) > 0) 331anchor._segments[currentIndex] = CreateNormalizedSegment(current.Start, otherSegment.Start); 394Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 400if (currentSegment.Start.CompareTo(otherSegment.End) >= 0) 407if (currentSegment.End.CompareTo(otherSegment.Start) <= 0) 418if (currentSegment.Start.CompareTo(otherSegment.Start) < 0) 420anchor._segments[current] = CreateNormalizedSegment(otherSegment.Start, currentSegment.End); 429anchor._segments[current] = CreateNormalizedSegment(currentSegment.Start, otherSegment.End); 508return _segments.Count > 0 ? _segments[0].Start : null; 531return (_segments.Count == 1 && (object)_segments[0].Start == (object)_segments[0].End); 548textBuffer.Append(TextRangeBase.GetTextInternal(_segments[i].Start, _segments[i].End)); 603if (segment.Start.CompareTo(segment.End) >= 0) 630if (newSegment.Start.CompareTo(_segments[i].Start) < 0) 635if (i > 0 && newSegment.Start.CompareTo(_segments[i - 1].End) < 0) 639if (i < _segments.Count && newSegment.End.CompareTo(_segments[i].Start) > 0) 790int retVal = x.Start.CompareTo(y.Start);
MS\Internal\Documents\DocumentViewerHelper.cs (3)
146startPointer = !findToolBar.SearchUp ? textSegment.Start : textSegment.End; 152if (textSegment.Start.CompareTo(startPointer) < 0) 155startPointer = textSegment.Start;
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
395position = textView.TextSegments[0].Start;
MS\Internal\Documents\HostedElements.cs (6)
72if (_textSegments[0].Start is TextPointer) 74_currentPosition = new TextPointer(_textSegments[0].Start as TextPointer); 87Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0 && 98Debug.Assert(((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].Start) >= 0); 117if (_textSegments[_currentTextSegment].Start is TextPointer) 119_currentPosition = new TextPointer(_textSegments[_currentTextSegment].Start as TextPointer);
MS\Internal\Documents\MultiPageTextView.cs (2)
161ITextPointer 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)
153ITextPointer startPositionInThisSegment = startPosition.CompareTo(textSegment.Start) > 0 ? startPosition : textSegment.Start; 472if (segment.Start.CompareTo(position) < 0 && segment.End.CompareTo(position) > 0) 477if (segment.Start.CompareTo(position) == 0) 489if (segment.Start.LogicalDirection == LogicalDirection.Backward) 523contains = (position.TextContainer.Start.CompareTo(segments[0].Start) == 0);
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
987if (((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].Start) >= 0 &&
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
785masterPointer = startOfPage ? textSegment.Start : textSegment.End; 791if (textSegment.Start.CompareTo(masterPointer) < 0) 794masterPointer = textSegment.Start;
System\Windows\Controls\TextAdaptor.cs (5)
101if (!textView.Contains(start) && start.CompareTo(textSegments[0].Start) < 0) 103start = textSegments[0].Start.CreatePointer(); 138ITextPointer first = (lineRange.Start.CompareTo(start) <= 0) ? start : lineRange.Start; 551ranges[i] = new TextRangeAdaptor(this, visibleTextSegments[i].Start, visibleTextSegments[i].End, _textPeer);
System\Windows\Controls\TextBox.cs (1)
1444textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).GetLineRange(textPointer).Start.CreatePointer(textPointer.LogicalDirection);
System\Windows\Controls\TextRangeAdaptor.cs (10)
606if (_start.CompareTo(lineRange.Start) != 0) 608_start = lineRange.Start.CreatePointer(); 679if (_start.CompareTo(textSegments[0].Start) != 0) 681_start = textSegments[0].Start.CreatePointer(); 803nextLineStart = lineRange.Start; 824previousLineEnd = textView.GetPositionAtNextLine(lineRange.Start, Double.NaN, -1, out newSuggestedX, out linesMoved); 834previousLineEnd = lineRange.Start; 937while (position.CompareTo(textSegments[0].Start) != 0) 941position.MoveToPosition(textSegments[0].Start); 1145position.MoveToPosition(textSegments[0].Start);
System\windows\Documents\CaretElement.cs (1)
465Geometry geometry = _textEditor.Selection.TextView.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End);
System\Windows\Documents\CompositionAdorner.cs (2)
590if (startLinePointer.CompareTo(textSegment.Start) < 0) 593startLinePointer = textSegment.Start;
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
696Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 728tsScan = (DocumentSequenceTextPointer)ts.Start;
System\Windows\Documents\DocumentSequenceTextView.cs (2)
368tpStart = new DocumentSequenceTextPointer(ChildBlock, childTR.Start); 559ptpStart = this._docPage.FixedDocumentSequence.TextContainer.MapChildPositionToParent(segment.Start);
System\Windows\Documents\FixedDocument.cs (2)
1035Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 1141int 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)
147startResetFormatPosition = (TextPointer)autoWordRange.Start;
System\windows\Documents\TextEditorDragDrop.cs (3)
472string wordText = TextRangeBase.GetTextInternal(wordSegment.Start, wordSegment.End); 473int indexInWord = wordSegment.Start.GetOffsetToPosition(dropPosition); 474dropPosition = (indexInWord < (wordText.Length / 2)) ? wordSegment.Start : wordSegment.End;
System\windows\Documents\TextEditorSelection.cs (5)
122ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 803ITextPointer caretPosition = lineRange.Start.GetFrozenPointer(LogicalDirection.Forward); 1603ExtendSelectionAndBringIntoView(lineRange.Start.CreatePointer(LogicalDirection.Forward), This); 1663if (!lineRange.IsNull && anchorLineRange.Start.CompareTo(This.Selection.AnchorPosition) == 0) 2359return lineRange.IsNull ? position : lineRange.Start;
System\Windows\Documents\TextPointer.cs (1)
1620if (position.CompareTo((TextPointer)lineRange.Start) <= 0)
System\Windows\Documents\TextPointerBase.cs (3)
698? position.CompareTo(lineSegment.Start) == 0 838thisPointer.MoveToPosition(lineRange.Start); 839thisPointer.SetLogicalDirection(lineRange.Start.LogicalDirection);
System\Windows\Documents\TextRange.cs (6)
377return _textSegments[0].Start is TextPointer; 1634TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1638TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1643TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1655(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft) 1660TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
System\Windows\Documents\TextRangeBase.cs (15)
196TextRangeBase.Select(thisRange, wordRange.Start, wordRange.End); 213string autoWord = TextRangeBase.GetTextInternal(autoWordRange.Start, autoWordRange.End).TrimEnd(' '); 215string textFromWordStart = TextRangeBase.GetTextInternal(autoWordRange.Start, thisRange.Start); 399ITextPointer position = textSegment.Start.CreatePointer(); 468ITextPointer position = textSegment.Start.CreatePointer(); 1192return thisRange._TextSegments[0].Start; 1211(object)thisRange._TextSegments[0].Start == (object)thisRange._TextSegments[0].End) 1217(object)thisRange._TextSegments[0].Start == (object)thisRange._TextSegments[0].End); 1272text += TextRangeBase.GetTextInternal(textSegment.Start, textSegment.End); 1911if (thisRange._ContentGeneration == thisRange._TextSegments[0].Start.TextContainer.Generation) 1918ITextPointer start = thisRange._TextSegments[0].Start; 1923Invariant.Assert(thisRange._TextSegments[0].Start is TextPointer); 1973thisRange._ContentGeneration = thisRange._TextSegments[0].Start.TextContainer.Generation; 2038ITextPointer finalStart = thisRange._TextSegments[0].Start; 2064thisRange._ContentGeneration = thisRange._TextSegments[0].Start.TextContainer.Generation;
System\Windows\Documents\TextRangeEditTables.cs (6)
55if (table != GetTableFromPosition((TextPointer)range.TextSegments[0].Start)) 60TableCell firstCell = GetTableCellFromPosition((TextPointer)range.TextSegments[0].Start); 409if (segment.Start.CompareTo(segment.End) != 0) 413start = segment.Start; 421start = textSegments[0].Start; 1078TableCell cell = GetTableCellFromPosition((TextPointer)textSegment.Start);
System\Windows\Documents\TextRangeSerialization.cs (4)
353ITextPointer pointer = textSegment.Start.CreatePointer(); 362ITextRange textRange = new TextRange(textSegment.Start, textSegment.End); 364elementLevel += WriteOpeningTags(textRange, textSegment.Start, pointer, xmlWriter, xamlTypeMapper, /*reduceElement:*/wpfPayload == null, out ignoreWriteHyperlinkEnd, ref ignoreList, preserveTextElements); 368WriteXamlTextSegment(xmlWriter, textSegment.Start, textSegment.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements);
System\windows\Documents\TextSelection.cs (7)
428movingPosition = thisSelection.TextSegments[thisSelection.TextSegments.Count - 1].Start; 838if (anchorWordRange.Start.CompareTo(cursorWordRange.Start) <= 0) 840startPosition = anchorWordRange.Start.GetFrozenPointer(LogicalDirection.Forward); 846movingPosition = cursorWordRange.Start.GetFrozenPointer(LogicalDirection.Forward); 1296new TextRange(autoWordRange.Start, autoWordRange.End).ApplyPropertyValue(formattingProperty, value); 1917else if (movingPosition.CompareTo(thisSelection.TextSegments[thisSelection.TextSegments.Count-1].Start) == 0)
System\windows\Documents\TextSelectionHighlightLayer.cs (9)
90if ((direction == LogicalDirection.Forward && textSegment.Start.CompareTo(textPosition) <= 0 && textPosition.CompareTo(textSegment.End) < 0) || // 91(direction == LogicalDirection.Backward && textSegment.Start.CompareTo(textPosition) < 0 && textPosition.CompareTo(textSegment.End) <= 0)) 135if (textSegment.Start.CompareTo(textSegment.End) != 0) 137if (textPosition.CompareTo(textSegment.Start) < 0) 139transitionPosition = textSegment.Start.CreateStaticPointer(); 156if (textSegment.Start.CompareTo(textSegment.End) != 0) 163else if (textPosition.CompareTo(textSegment.Start) > 0) 165transitionPosition = textSegment.Start.CreateStaticPointer(); 309return textRange._TextSegments[0].Start.CompareTo(textRange._TextSegments[textRange._TextSegments.Count - 1].End) == 0;
System\Windows\Documents\TextStore.cs (2)
1083ITextPointer start = (lineRange.Start.CompareTo(startPointer) <= 0) ? startPointer : lineRange.Start;