1 implementation of Start
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
322ITextPointer ITextRange.Start
207 references to Start
PresentationFramework (207)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
448start = textRange.Start;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
372start = textRange.Start;
MS\Internal\Documents\DocumentGrid.cs (4)
302ITextPointer tp = TextEditor.Selection.Start; 1283textRange.Select(textRange.Start, textRange.Start); //clear selection 2546ITextPointer tp = TextEditor.Selection.Start;
MS\Internal\Documents\DocumentViewerHelper.cs (11)
121if (textView != null && textView.Contains(textSelection.Start)) 127contentStart = findToolBar.SearchUp ? textContainer.Start : textSelection.Start; 128contentEnd = findToolBar.SearchUp ? textSelection.Start : textContainer.End; 191findResult = TextFindEngine.Find(textSelection.Start, textSelection.End, searchText, findFlags, cultureInfo); 196(findResult.Start != null) && 197(findResult.Start.CompareTo(textSelection.Start) == 0) && 203contentStart = findToolBar.SearchUp ? textSelection.Start : textSelection.End; 211contentStart = findToolBar.SearchUp ? textSelection.End : textSelection.Start; 232textSelection.Select(findResult.Start, findResult.End); 404contextMenuPosition = textContainer.TextSelection.Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
207if (textSelection.Start != null && textSelection.Start.TextContainer == flowDocument.StructuralCache.TextContainer) 678if (findResult.Start is ContentPosition) 680BringContentPositionIntoView((ContentPosition)findResult.Start);
MS\Internal\Documents\TextBoxView.cs (1)
1907GetTightBoundingGeometryFromLineIndexForSelection(line, lineIndex, selection.Start.CharOffset, selection.End.CharOffset, CalculatedTextAlignment, endOfParaGlyphWidth, ref selectionGeometry);
System\Windows\Annotations\AnnotationHelper.cs (8)
605TextSelectionHelper.GetPointerPage(selection.Start, out selStartPage); 685ITextPointer start = selection.Start.CreatePointer(); 845if (((selection.Start.CompareTo(anchor.Start) > 0) && (selection.Start.CompareTo(anchor.End) < 0)) || 847((selection.Start.CompareTo(anchor.Start) <= 0) && (selection.End.CompareTo(anchor.End) >= 0)) || 869if (((anchor.Start.CompareTo(selection.Start) == 0) && 870(selection.Start.LogicalDirection == LogicalDirection.Forward)) || 958ITextRange anchor = new TextRange(selection.Start, selection.End);
System\Windows\Controls\SinglePageViewer.cs (2)
1173if (findResult.Start is ContentPosition) 1177_contentPosition = (ContentPosition)findResult.Start;
System\Windows\Controls\TextAdaptor.cs (1)
502return new ITextRangeProvider[] { new TextRangeAdaptor(this, selection.Start, selection.End, _textPeer) };
System\Windows\Controls\TextRangeAdaptor.cs (7)
643if (expandStart && _start.CompareTo(textRange.Start) != 0) 645_start = textRange.Start.CreatePointer(); 866nextParagraphStart = textRange.Start; 879ITextPointer previousParagraphEnd = textRange.Start; 1114position.MoveToPosition(direction == LogicalDirection.Forward ? paragraphRange.End : paragraphRange.Start); 1121position.MoveToPosition(paragraphRange.Start); // Position it always at the beginning of the paragraph. 1777range = new TextRangeAdaptor(_textAdaptor, findResult.Start, findResult.End, _textPeer);
System\Windows\Documents\ImmComposition.cs (6)
634startNavigator = _editor.Selection.Start.CreatePointer(); 989composition.SetCompositionPositions(_editor.Selection.Start, _editor.Selection.End, compositionString); 1141start = range.Start; 1145start = range.Start.CreatePointer(resultLength, LogicalDirection.Forward); 1414navigator = range.Start.CreatePointer(); 1543ITextPointer start = range.Start.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\Speller.cs (1)
716caretPosition = _textEditor.Selection.Start;
System\windows\Documents\TextEditor.cs (2)
1168return _FilterText(textData, range.Start.GetOffsetToPosition(range.End)); 1178return _FilterText(textData, range.Start.GetOffsetToPosition(range.End), filterMaxLength);
System\windows\Documents\TextEditorCharacters.cs (2)
138if (This == null || !This._IsEnabled || This.IsReadOnly || !This.AcceptsRichContent || !(This.Selection.Start is TextPointer)) 148TextPointer startResetFormatPosition = (TextPointer)This.Selection.Start;
System\windows\Documents\TextEditorContextMenu.cs (2)
83TextPointer start = GetContentPosition(This.Selection.Start) as TextPointer; 190position = This.Selection.Start;
System\windows\Documents\TextEditorCopyPaste.cs (4)
894TextRangeEditLists.MergeListsAroundNormalizedPosition((TextPointer)This.Selection.Start); 898TextRangeEdit.MergeFlowDirection((TextPointer)This.Selection.Start); 953if (This.AcceptsRichContent && This.Selection.Start is TextPointer) 959TextPointer start = TextRangeEditTables.EnsureInsertionPosition((TextPointer)This.Selection.Start);
System\windows\Documents\TextEditorDragDrop.cs (6)
183_dragSourceTextRange = new TextRange(selection.Start, selection.End); 484TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.Start, LogicalDirection.Forward) && // 556if (_dragSourceTextRange != null && _dragSourceTextRange.Start.TextContainer == selection.Start.TextContainer && 585_dragSourceTextRange != null && _dragSourceTextRange.Start.TextContainer == selection.Start.TextContainer)
System\windows\Documents\TextEditorSelection.cs (23)
138return new TextSegment(textRange.Start, textRange.End); 360if (!This.Selection.Start.ValidateLayout()) 483This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 529if (This.Selection.Start.CompareTo(paragraphRange.Start) > 0) 532This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 536movingPointer.MoveToPosition(paragraphRange.Start); 541This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 679if (!This.Selection.Start.ValidateLayout()) 1340ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 1376if (movingPointer.CompareTo(paragraphRange.Start) > 0) 1379ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 1383movingPointer.MoveToPosition(paragraphRange.Start); 1388ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 2072ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start); 2153if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward)) 2156textEditor.Selection.SetCaretToPosition(textEditor.Selection.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 2162ITextPointer wordBoundary = textEditor.Selection.Start.CreatePointer(); 2322This.Selection.Start.CompareTo(movingPosition) < 0 && 2348return This.Selection.IsEmpty ? This.Selection.Start : This.Selection.Start.GetFrozenPointer(LogicalDirection.Forward); 2409if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.Start)) 2411ITextPointer position = This.Selection.Start.GetNextInsertionPosition(LogicalDirection.Backward);
System\windows\Documents\TextEditorSpelling.cs (9)
60LogicalDirection direction = This.Selection.IsEmpty ? This.Selection.Start.LogicalDirection : LogicalDirection.Forward; 63ITextPointer position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 69position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 84position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 89position = GetNextNonWhiteSpacePosition(This.Selection.Start, This.Selection.End); 93position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 338if (selection.Start is TextPointer) 340isSelectionIgnoringErrors = ((TextPointer)selection.Start).ParentBlock != ((TextPointer)selection.End).ParentBlock; 346isSelectionIgnoringErrors = selection.Start.GetOffsetToPosition(selection.End) >= 256;
System\windows\Documents\TextEditorTyping.cs (17)
599ITextPointer position = This.Selection.Start; 621(IsAtListItemChildStart(position, false /* emptyChildOnly */) || IsAtIndentedParagraphOrBlockUIContainerStart(This.Selection.Start))) 725position = This.Selection.Start; 925if (TextRangeEditTables.IsTableStructureCrossed(This.Selection.Start, wordBoundary)) 930ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 948This.Selection.Select(textRange.Start, textRange.End); 973ITextPointer wordBoundary = This.Selection.Start.CreatePointer(); 985if (TextRangeEditTables.IsTableStructureCrossed(wordBoundary, This.Selection.Start)) 1008This.Selection.Select(textRange.Start, textRange.End); 1013This.Selection.Select(textRange.Start, textRange.End); 1075if (This.AcceptsRichContent && This.Selection.Start is TextPointer) 1172Invariant.Assert(This.Selection.Start is TextPointer); 1173TextPointer position = (TextPointer)This.Selection.Start; 1359if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1391if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1417This.Selection.SetCaretToPosition(This.Selection.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 1453TextElement parent = ((TextPointer)This.Selection.Start).Parent as TextElement;
System\Windows\Documents\TextParentUndoUnit.cs (1)
123ITextContainer textContainer = _selection.Start.TextContainer;
System\Windows\Documents\TextRange.cs (3)
303/// <see cref="ITextRange.Start"/> 320/// <see cref="ITextRange.Start"/> 1269return (TextPointer)((ITextRange)this).Start;
System\Windows\Documents\TextRangeBase.cs (37)
67if (textPointer.TextContainer != thisRange.Start.TextContainer) 75if (textPointer.CompareTo(thisRange.Start) < 0) 165ValidationHelper.VerifyPosition(thisRange.Start.TextContainer, position1, "position1"); 166ValidationHelper.VerifyPosition(thisRange.Start.TextContainer, position2, "position2"); 210!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Forward) && // 211!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Backward)) 215autoWordRange = TextPointerBase.GetWordRange(thisRange.Start); 218string textFromWordStart = TextRangeBase.GetTextInternal(autoWordRange.Start, thisRange.Start); 261if (thisRange.Start is TextPointer && 262(cell = TextRangeEditTables.GetTableCellFromPosition((TextPointer)thisRange.Start)) != null) 269thisRange.Select(thisRange.Start, thisRange.Start); 293if (!TextRangeEditTables.IsTableStructureCrossed(thisRange.Start, nextPosition)) 295TextRange range = new TextRange(thisRange.Start, nextPosition); 309thisRange.Select(thisRange.Start, newEnd); 394object startValue = GetCharacterValueFromPosition(thisRange.Start, formattingProperty); 505startValue = thisRange.Start.GetValue(formattingProperty); 514ITextPointer startNavigator = thisRange.Start.CreatePointer(); 577textContainer = thisRange.Start.TextContainer; 1216(thisRange.Start.CompareTo(thisRange.End) == 0), 1253ITextPointer start = thisRange.Start; 1298if (thisRange.Start is TextPointer && 1299((TextPointer)thisRange.Start).Parent == ((TextPointer)thisRange.End).Parent && 1300((TextPointer)thisRange.Start).Parent is Run && 1314if (thisRange.Start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 1324explicitInsertPosition = thisRange.Start; 1327TextContainer textContainer = ((TextPointer)thisRange.Start).TextContainer; 1328textContainer.DeleteContentInternal((TextPointer)thisRange.Start, (TextPointer)thisRange.End); 1332thisRange.Start.DeleteContentToPosition(thisRange.End); 1335if (thisRange.Start is TextPointer) 1337TextRangeEdit.MergeFlowDirection((TextPointer)thisRange.Start); 1340thisRange.Select(thisRange.Start, thisRange.Start); 1351ITextPointer insertPosition = (explicitInsertPosition == null) ? thisRange.Start : explicitInsertPosition; 1371insertPosition = thisRange.Start; 1619ITextPointer start = range.Start.CreatePointer(); 1670ITextContainer textContainer = thisRange.Start.TextContainer;
System\Windows\Documents\TextRangeEditTables.cs (3)
49if (!(range.Start is TextPointer)) 578Invariant.Assert(((ITextSelection)selection).Start is TextPointer); 592Invariant.Assert(((ITextSelection)selection).Start is TextPointer);
System\Windows\Documents\TextRangeSerialization.cs (7)
95int elementLevel = EmptyDocumentDepth + WriteOpeningTags(range, range.Start, commonAncestor, xmlWriter, xamlTypeMapper, /*reduceElement:*/wpfPayload == null, out ignoreWriteHyperlinkEnd, ref ignoreList, preserveTextElements); 103WriteXamlTextSegment(xmlWriter, range.Start, range.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements); 449if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 468if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 1675ITextPointer commonAncestor = range.Start.CreatePointer(); 1925if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start) && TextPointerBase.IsAtNonMergeableInlineEnd(range.End)) 1928hyperlinkStart = range.Start.CreatePointer(LogicalDirection.Forward);
System\windows\Documents\TextSelection.cs (24)
53SetActivePositions(/*AnchorPosition:*/thisSelection.Start, thisSelection.End); 113SetActivePositions(/*anchorPosition:*/thisSelection.Start, thisSelection.End); 307SetActivePositions(((ITextRange)this).Start, ((ITextRange)this).End); 400return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition; 416movingPosition = thisSelection.Start; 423movingPosition = thisSelection.Start; 540Invariant.Assert(thisSelection.Start.LogicalDirection == caretPosition.LogicalDirection); // orientation must be as passed 728if (_highlightLayer != null && thisSelection.Start.TextContainer.Highlights.GetLayer(typeof(TextSelection)) == _highlightLayer) 730thisSelection.Start.TextContainer.Highlights.RemoveLayer(_highlightLayer); 1419if (thisSelection.Start is TextPointer) 1447if (((ITextSelection)this).Start is TextPointer) 1524if (((ITextSelection)this).Start is TextPointer) 1540if (!(((ITextSelection)this).Start is TextPointer)) 1759return (This.Start.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text && 1761This.Start.GetNextInsertionPosition(LogicalDirection.Backward) == null && 1798ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1825ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1875if (_anchorPosition.CompareTo(thisSelection.Start) < 0) 1877_anchorPosition = thisSelection.Start.GetFrozenPointer(_anchorPosition.LogicalDirection); 1908if (movingPosition.CompareTo(thisSelection.Start) == 0) 2267FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2278nextCharacterPosition = focusedTextSelection.Start.CreatePointer(LogicalDirection.Forward); 2681position = TextPointerBase.GetFollowingNonMergeableInlineContentStart(This.Start); 2686position = This.Start;
System\windows\Documents\TextSelectionHighlightLayer.cs (2)
40_oldStart = _selection.Start; 194newStart = _selection.Start;
System\Windows\Documents\TextStore.cs (18)
342selection[0].start = this.TextSelection.Start.CharOffset; 344selection[0].style.ase = (this.TextSelection.MovingPosition.CompareTo(this.TextSelection.Start) == 0) ? UnsafeNativeMethods.TsActiveSelEnd.TS_AE_START : UnsafeNativeMethods.TsActiveSelEnd.TS_AE_END; 691GetAdjustedSelection(range.Start, range.End, out start, out end); 716string filteredText = FilterCompositionString(new string(text), range.Start.GetOffsetToPosition(range.End)); // does NOT filter MaxLength. 753if (start.CompareTo(this.TextSelection.Start) != 0 || 767_previousCompositionStartOffset = this.TextSelection.Start.Offset; 1520string filteredText = FilterCompositionString(result, TextSelection.Start.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength. 1778if ((compositionStart.CompareTo(TextSelection.Start) <= 0) && 1780(compositionEnd.CompareTo(TextSelection.Start) >= 0) && 1792fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1817fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1924pointer = this.TextSelection.Start.CreatePointer(direction); 2000CompositionParentUndoUnit compositionUndoUnit = OpenCompositionUndoUnit(range.Start, range.End); 2018this.TextSelection.Select(range.Start, range.End); 3161if (compositionStart != null && compositionStart.CompareTo(this.TextSelection.Start) > 0) 3167start = this.TextSelection.Start; 3612TextParentUndoUnit textParentUndoUnit = new TextParentUndoUnit(this.TextSelection, this.TextSelection.Start, this.TextSelection.Start);