1 implementation of Start
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
312ITextPointer ITextRange.Start
207 references to Start
PresentationFramework (207)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
436start = textRange.Start;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
362start = textRange.Start;
MS\Internal\Documents\DocumentGrid.cs (4)
294ITextPointer tp = TextEditor.Selection.Start; 1275textRange.Select(textRange.Start, textRange.Start); //clear selection 2531ITextPointer tp = TextEditor.Selection.Start;
MS\Internal\Documents\DocumentViewerHelper.cs (11)
118if (textView != null && textView.Contains(textSelection.Start)) 124contentStart = findToolBar.SearchUp ? textContainer.Start : textSelection.Start; 125contentEnd = findToolBar.SearchUp ? textSelection.Start : textContainer.End; 188findResult = TextFindEngine.Find(textSelection.Start, textSelection.End, searchText, findFlags, cultureInfo); 193(findResult.Start != null) && 194(findResult.Start.CompareTo(textSelection.Start) == 0) && 200contentStart = findToolBar.SearchUp ? textSelection.Start : textSelection.End; 208contentStart = findToolBar.SearchUp ? textSelection.End : textSelection.Start; 229textSelection.Select(findResult.Start, findResult.End); 401contextMenuPosition = textContainer.TextSelection.Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
203if (textSelection.Start != null && textSelection.Start.TextContainer == flowDocument.StructuralCache.TextContainer) 662if (findResult.Start is ContentPosition) 664BringContentPositionIntoView((ContentPosition)findResult.Start);
MS\Internal\Documents\TextBoxView.cs (1)
1864GetTightBoundingGeometryFromLineIndexForSelection(line, lineIndex, selection.Start.CharOffset, selection.End.CharOffset, CalculatedTextAlignment, endOfParaGlyphWidth, ref selectionGeometry);
System\Windows\Annotations\AnnotationHelper.cs (8)
590TextSelectionHelper.GetPointerPage(selection.Start, out selStartPage); 670ITextPointer start = selection.Start.CreatePointer(); 830if (((selection.Start.CompareTo(anchor.Start) > 0) && (selection.Start.CompareTo(anchor.End) < 0)) || 832((selection.Start.CompareTo(anchor.Start) <= 0) && (selection.End.CompareTo(anchor.End) >= 0)) || 854if (((anchor.Start.CompareTo(selection.Start) == 0) && 855(selection.Start.LogicalDirection == LogicalDirection.Forward)) || 943ITextRange anchor = new TextRange(selection.Start, selection.End);
System\Windows\Controls\SinglePageViewer.cs (2)
1171if (findResult.Start is ContentPosition) 1175_contentPosition = (ContentPosition)findResult.Start;
System\Windows\Controls\TextAdaptor.cs (1)
492return new ITextRangeProvider[] { new TextRangeAdaptor(this, selection.Start, selection.End, _textPeer) };
System\Windows\Controls\TextRangeAdaptor.cs (7)
640if (expandStart && _start.CompareTo(textRange.Start) != 0) 642_start = textRange.Start.CreatePointer(); 863nextParagraphStart = textRange.Start; 876ITextPointer previousParagraphEnd = textRange.Start; 1111position.MoveToPosition(direction == LogicalDirection.Forward ? paragraphRange.End : paragraphRange.Start); 1118position.MoveToPosition(paragraphRange.Start); // Position it always at the beginning of the paragraph. 1774range = new TextRangeAdaptor(_textAdaptor, findResult.Start, findResult.End, _textPeer);
System\Windows\Documents\ImmComposition.cs (6)
610startNavigator = _editor.Selection.Start.CreatePointer(); 967composition.SetCompositionPositions(_editor.Selection.Start, _editor.Selection.End, compositionString); 1119start = range.Start; 1123start = range.Start.CreatePointer(resultLength, LogicalDirection.Forward); 1392navigator = range.Start.CreatePointer(); 1521ITextPointer start = range.Start.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\Speller.cs (1)
695caretPosition = _textEditor.Selection.Start;
System\windows\Documents\TextEditor.cs (2)
1155return _FilterText(textData, range.Start.GetOffsetToPosition(range.End)); 1165return _FilterText(textData, range.Start.GetOffsetToPosition(range.End), filterMaxLength);
System\windows\Documents\TextEditorCharacters.cs (2)
121if (This == null || !This._IsEnabled || This.IsReadOnly || !This.AcceptsRichContent || !(This.Selection.Start is TextPointer)) 131TextPointer startResetFormatPosition = (TextPointer)This.Selection.Start;
System\windows\Documents\TextEditorContextMenu.cs (2)
80TextPointer start = GetContentPosition(This.Selection.Start) as TextPointer; 187position = This.Selection.Start;
System\windows\Documents\TextEditorCopyPaste.cs (4)
882TextRangeEditLists.MergeListsAroundNormalizedPosition((TextPointer)This.Selection.Start); 886TextRangeEdit.MergeFlowDirection((TextPointer)This.Selection.Start); 941if (This.AcceptsRichContent && This.Selection.Start is TextPointer) 947TextPointer start = TextRangeEditTables.EnsureInsertionPosition((TextPointer)This.Selection.Start);
System\windows\Documents\TextEditorDragDrop.cs (6)
165_dragSourceTextRange = new TextRange(selection.Start, selection.End); 466TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.Start, LogicalDirection.Forward) && // 538if (_dragSourceTextRange != null && _dragSourceTextRange.Start.TextContainer == selection.Start.TextContainer && 567_dragSourceTextRange != null && _dragSourceTextRange.Start.TextContainer == selection.Start.TextContainer)
System\windows\Documents\TextEditorSelection.cs (23)
122return new TextSegment(textRange.Start, textRange.End); 344if (!This.Selection.Start.ValidateLayout()) 467This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 513if (This.Selection.Start.CompareTo(paragraphRange.Start) > 0) 516This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 520movingPointer.MoveToPosition(paragraphRange.Start); 525This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 663if (!This.Selection.Start.ValidateLayout()) 1324ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 1360if (movingPointer.CompareTo(paragraphRange.Start) > 0) 1363ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 1367movingPointer.MoveToPosition(paragraphRange.Start); 1372ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 2056ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start); 2137if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward)) 2140textEditor.Selection.SetCaretToPosition(textEditor.Selection.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 2146ITextPointer wordBoundary = textEditor.Selection.Start.CreatePointer(); 2306This.Selection.Start.CompareTo(movingPosition) < 0 && 2332return This.Selection.IsEmpty ? This.Selection.Start : This.Selection.Start.GetFrozenPointer(LogicalDirection.Forward); 2393if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.Start)) 2395ITextPointer position = This.Selection.Start.GetNextInsertionPosition(LogicalDirection.Backward);
System\windows\Documents\TextEditorSpelling.cs (9)
58LogicalDirection direction = This.Selection.IsEmpty ? This.Selection.Start.LogicalDirection : LogicalDirection.Forward; 61ITextPointer position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 67position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 82position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 87position = GetNextNonWhiteSpacePosition(This.Selection.Start, This.Selection.End); 91position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 336if (selection.Start is TextPointer) 338isSelectionIgnoringErrors = ((TextPointer)selection.Start).ParentBlock != ((TextPointer)selection.End).ParentBlock; 344isSelectionIgnoringErrors = selection.Start.GetOffsetToPosition(selection.End) >= 256;
System\windows\Documents\TextEditorTyping.cs (17)
580ITextPointer position = This.Selection.Start; 602(IsAtListItemChildStart(position, false /* emptyChildOnly */) || IsAtIndentedParagraphOrBlockUIContainerStart(This.Selection.Start))) 706position = This.Selection.Start; 906if (TextRangeEditTables.IsTableStructureCrossed(This.Selection.Start, wordBoundary)) 911ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 929This.Selection.Select(textRange.Start, textRange.End); 954ITextPointer wordBoundary = This.Selection.Start.CreatePointer(); 966if (TextRangeEditTables.IsTableStructureCrossed(wordBoundary, This.Selection.Start)) 989This.Selection.Select(textRange.Start, textRange.End); 994This.Selection.Select(textRange.Start, textRange.End); 1056if (This.AcceptsRichContent && This.Selection.Start is TextPointer) 1153Invariant.Assert(This.Selection.Start is TextPointer); 1154TextPointer position = (TextPointer)This.Selection.Start; 1337if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1369if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1395This.Selection.SetCaretToPosition(This.Selection.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 1431TextElement parent = ((TextPointer)This.Selection.Start).Parent as TextElement;
System\Windows\Documents\TextParentUndoUnit.cs (1)
111ITextContainer textContainer = _selection.Start.TextContainer;
System\Windows\Documents\TextRange.cs (3)
293/// <see cref="ITextRange.Start"/> 310/// <see cref="ITextRange.Start"/> 1257return (TextPointer)((ITextRange)this).Start;
System\Windows\Documents\TextRangeBase.cs (37)
63if (textPointer.TextContainer != thisRange.Start.TextContainer) 71if (textPointer.CompareTo(thisRange.Start) < 0) 161ValidationHelper.VerifyPosition(thisRange.Start.TextContainer, position1, nameof(position1)); 162ValidationHelper.VerifyPosition(thisRange.Start.TextContainer, position2, nameof(position2)); 206!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Forward) && // 207!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Backward)) 211autoWordRange = TextPointerBase.GetWordRange(thisRange.Start); 214string textFromWordStart = TextRangeBase.GetTextInternal(autoWordRange.Start, thisRange.Start); 257if (thisRange.Start is TextPointer && 258(cell = TextRangeEditTables.GetTableCellFromPosition((TextPointer)thisRange.Start)) != null) 265thisRange.Select(thisRange.Start, thisRange.Start); 289if (!TextRangeEditTables.IsTableStructureCrossed(thisRange.Start, nextPosition)) 291TextRange range = new TextRange(thisRange.Start, nextPosition); 305thisRange.Select(thisRange.Start, newEnd); 390object startValue = GetCharacterValueFromPosition(thisRange.Start, formattingProperty); 501startValue = thisRange.Start.GetValue(formattingProperty); 510ITextPointer startNavigator = thisRange.Start.CreatePointer(); 573textContainer = thisRange.Start.TextContainer; 1212(thisRange.Start.CompareTo(thisRange.End) == 0), 1249ITextPointer start = thisRange.Start; 1294if (thisRange.Start is TextPointer && 1295((TextPointer)thisRange.Start).Parent == ((TextPointer)thisRange.End).Parent && 1296((TextPointer)thisRange.Start).Parent is Run && 1310if (thisRange.Start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 1320explicitInsertPosition = thisRange.Start; 1323TextContainer textContainer = ((TextPointer)thisRange.Start).TextContainer; 1324textContainer.DeleteContentInternal((TextPointer)thisRange.Start, (TextPointer)thisRange.End); 1328thisRange.Start.DeleteContentToPosition(thisRange.End); 1331if (thisRange.Start is TextPointer) 1333TextRangeEdit.MergeFlowDirection((TextPointer)thisRange.Start); 1336thisRange.Select(thisRange.Start, thisRange.Start); 1347ITextPointer insertPosition = explicitInsertPosition ?? thisRange.Start; 1367insertPosition = thisRange.Start; 1615ITextPointer start = range.Start.CreatePointer(); 1666ITextContainer textContainer = thisRange.Start.TextContainer;
System\Windows\Documents\TextRangeEditTables.cs (3)
46if (!(range.Start is TextPointer)) 575Invariant.Assert(((ITextSelection)selection).Start is TextPointer); 589Invariant.Assert(((ITextSelection)selection).Start is TextPointer);
System\Windows\Documents\TextRangeSerialization.cs (7)
88int elementLevel = EmptyDocumentDepth + WriteOpeningTags(range, range.Start, commonAncestor, xmlWriter, xamlTypeMapper, /*reduceElement:*/wpfPayload == null, out ignoreWriteHyperlinkEnd, ref ignoreList, preserveTextElements); 96WriteXamlTextSegment(xmlWriter, range.Start, range.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements); 442if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 461if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 1668ITextPointer commonAncestor = range.Start.CreatePointer(); 1918if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start) && TextPointerBase.IsAtNonMergeableInlineEnd(range.End)) 1921hyperlinkStart = range.Start.CreatePointer(LogicalDirection.Forward);
System\windows\Documents\TextSelection.cs (24)
49SetActivePositions(/*AnchorPosition:*/thisSelection.Start, thisSelection.End); 109SetActivePositions(/*anchorPosition:*/thisSelection.Start, thisSelection.End); 291SetActivePositions(((ITextRange)this).Start, ((ITextRange)this).End); 384return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition; 400movingPosition = thisSelection.Start; 407movingPosition = thisSelection.Start; 524Invariant.Assert(thisSelection.Start.LogicalDirection == caretPosition.LogicalDirection); // orientation must be as passed 712if (_highlightLayer != null && thisSelection.Start.TextContainer.Highlights.GetLayer(typeof(TextSelection)) == _highlightLayer) 714thisSelection.Start.TextContainer.Highlights.RemoveLayer(_highlightLayer); 1400if (thisSelection.Start is TextPointer) 1428if (((ITextSelection)this).Start is TextPointer) 1505if (((ITextSelection)this).Start is TextPointer) 1521if (!(((ITextSelection)this).Start is TextPointer)) 1740return (This.Start.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text && 1742This.Start.GetNextInsertionPosition(LogicalDirection.Backward) == null && 1779ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1806ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1856if (_anchorPosition.CompareTo(thisSelection.Start) < 0) 1858_anchorPosition = thisSelection.Start.GetFrozenPointer(_anchorPosition.LogicalDirection); 1889if (movingPosition.CompareTo(thisSelection.Start) == 0) 2248FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2259nextCharacterPosition = focusedTextSelection.Start.CreatePointer(LogicalDirection.Forward); 2664position = TextPointerBase.GetFollowingNonMergeableInlineContentStart(This.Start); 2669position = This.Start;
System\windows\Documents\TextSelectionHighlightLayer.cs (2)
37_oldStart = _selection.Start; 191newStart = _selection.Start;
System\Windows\Documents\TextStore.cs (18)
330selection[0].start = this.TextSelection.Start.CharOffset; 332selection[0].style.ase = (this.TextSelection.MovingPosition.CompareTo(this.TextSelection.Start) == 0) ? UnsafeNativeMethods.TsActiveSelEnd.TS_AE_START : UnsafeNativeMethods.TsActiveSelEnd.TS_AE_END; 679GetAdjustedSelection(range.Start, range.End, out start, out end); 704string filteredText = FilterCompositionString(new string(text), range.Start.GetOffsetToPosition(range.End)); // does NOT filter MaxLength. 741if (start.CompareTo(this.TextSelection.Start) != 0 || 755_previousCompositionStartOffset = this.TextSelection.Start.Offset; 1505string filteredText = FilterCompositionString(result, TextSelection.Start.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength. 1760if ((compositionStart.CompareTo(TextSelection.Start) <= 0) && 1762(compositionEnd.CompareTo(TextSelection.Start) >= 0) && 1774fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1799fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1906pointer = this.TextSelection.Start.CreatePointer(direction); 1982CompositionParentUndoUnit compositionUndoUnit = OpenCompositionUndoUnit(range.Start, range.End); 2000this.TextSelection.Select(range.Start, range.End); 3136if (compositionStart != null && compositionStart.CompareTo(this.TextSelection.Start) > 0) 3142start = this.TextSelection.Start; 3584TextParentUndoUnit textParentUndoUnit = new TextParentUndoUnit(this.TextSelection, this.TextSelection.Start, this.TextSelection.Start);