1 implementation of Start
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
319ITextPointer ITextRange.Start
207 references to Start
PresentationFramework (207)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
437start = textRange.Start;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
363start = textRange.Start;
MS\Internal\Documents\DocumentGrid.cs (4)
295ITextPointer tp = TextEditor.Selection.Start; 1276textRange.Select(textRange.Start, textRange.Start); //clear selection 2539ITextPointer tp = TextEditor.Selection.Start;
MS\Internal\Documents\DocumentViewerHelper.cs (11)
119if (textView != null && textView.Contains(textSelection.Start)) 125contentStart = findToolBar.SearchUp ? textContainer.Start : textSelection.Start; 126contentEnd = findToolBar.SearchUp ? textSelection.Start : textContainer.End; 189findResult = TextFindEngine.Find(textSelection.Start, textSelection.End, searchText, findFlags, cultureInfo); 194(findResult.Start != null) && 195(findResult.Start.CompareTo(textSelection.Start) == 0) && 201contentStart = findToolBar.SearchUp ? textSelection.Start : textSelection.End; 209contentStart = findToolBar.SearchUp ? textSelection.End : textSelection.Start; 230textSelection.Select(findResult.Start, findResult.End); 402contextMenuPosition = textContainer.TextSelection.Start.CreatePointer(LogicalDirection.Forward);
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
204if (textSelection.Start != null && textSelection.Start.TextContainer == flowDocument.StructuralCache.TextContainer) 675if (findResult.Start is ContentPosition) 677BringContentPositionIntoView((ContentPosition)findResult.Start);
MS\Internal\Documents\TextBoxView.cs (1)
1905GetTightBoundingGeometryFromLineIndexForSelection(line, lineIndex, selection.Start.CharOffset, selection.End.CharOffset, CalculatedTextAlignment, endOfParaGlyphWidth, ref selectionGeometry);
System\Windows\Annotations\AnnotationHelper.cs (8)
593TextSelectionHelper.GetPointerPage(selection.Start, out selStartPage); 673ITextPointer start = selection.Start.CreatePointer(); 833if (((selection.Start.CompareTo(anchor.Start) > 0) && (selection.Start.CompareTo(anchor.End) < 0)) || 835((selection.Start.CompareTo(anchor.Start) <= 0) && (selection.End.CompareTo(anchor.End) >= 0)) || 857if (((anchor.Start.CompareTo(selection.Start) == 0) && 858(selection.Start.LogicalDirection == LogicalDirection.Forward)) || 946ITextRange anchor = new TextRange(selection.Start, selection.End);
System\Windows\Controls\SinglePageViewer.cs (2)
1170if (findResult.Start is ContentPosition) 1174_contentPosition = (ContentPosition)findResult.Start;
System\Windows\Controls\TextAdaptor.cs (1)
499return new ITextRangeProvider[] { new TextRangeAdaptor(this, selection.Start, selection.End, _textPeer) };
System\Windows\Controls\TextRangeAdaptor.cs (7)
641if (expandStart && _start.CompareTo(textRange.Start) != 0) 643_start = textRange.Start.CreatePointer(); 864nextParagraphStart = textRange.Start; 877ITextPointer previousParagraphEnd = textRange.Start; 1112position.MoveToPosition(direction == LogicalDirection.Forward ? paragraphRange.End : paragraphRange.Start); 1119position.MoveToPosition(paragraphRange.Start); // Position it always at the beginning of the paragraph. 1775range = new TextRangeAdaptor(_textAdaptor, findResult.Start, findResult.End, _textPeer);
System\Windows\Documents\ImmComposition.cs (6)
626startNavigator = _editor.Selection.Start.CreatePointer(); 981composition.SetCompositionPositions(_editor.Selection.Start, _editor.Selection.End, compositionString); 1133start = range.Start; 1137start = range.Start.CreatePointer(resultLength, LogicalDirection.Forward); 1406navigator = range.Start.CreatePointer(); 1535ITextPointer start = range.Start.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\Speller.cs (1)
699caretPosition = _textEditor.Selection.Start;
System\windows\Documents\TextEditor.cs (2)
1162return _FilterText(textData, range.Start.GetOffsetToPosition(range.End)); 1172return _FilterText(textData, range.Start.GetOffsetToPosition(range.End), filterMaxLength);
System\windows\Documents\TextEditorCharacters.cs (2)
122if (This == null || !This._IsEnabled || This.IsReadOnly || !This.AcceptsRichContent || !(This.Selection.Start is TextPointer)) 132TextPointer startResetFormatPosition = (TextPointer)This.Selection.Start;
System\windows\Documents\TextEditorContextMenu.cs (2)
81TextPointer start = GetContentPosition(This.Selection.Start) as TextPointer; 188position = This.Selection.Start;
System\windows\Documents\TextEditorCopyPaste.cs (4)
881TextRangeEditLists.MergeListsAroundNormalizedPosition((TextPointer)This.Selection.Start); 885TextRangeEdit.MergeFlowDirection((TextPointer)This.Selection.Start); 940if (This.AcceptsRichContent && This.Selection.Start is TextPointer) 946TextPointer start = TextRangeEditTables.EnsureInsertionPosition((TextPointer)This.Selection.Start);
System\windows\Documents\TextEditorDragDrop.cs (6)
166_dragSourceTextRange = new TextRange(selection.Start, selection.End); 467TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.Start, LogicalDirection.Forward) && // 539if (_dragSourceTextRange != null && _dragSourceTextRange.Start.TextContainer == selection.Start.TextContainer && 568_dragSourceTextRange != null && _dragSourceTextRange.Start.TextContainer == selection.Start.TextContainer)
System\windows\Documents\TextEditorSelection.cs (23)
123return new TextSegment(textRange.Start, textRange.End); 345if (!This.Selection.Start.ValidateLayout()) 468This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 514if (This.Selection.Start.CompareTo(paragraphRange.Start) > 0) 517This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 521movingPointer.MoveToPosition(paragraphRange.Start); 526This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 664if (!This.Selection.Start.ValidateLayout()) 1325ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 1361if (movingPointer.CompareTo(paragraphRange.Start) > 0) 1364ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 1368movingPointer.MoveToPosition(paragraphRange.Start); 1373ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 2057ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start); 2138if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward)) 2141textEditor.Selection.SetCaretToPosition(textEditor.Selection.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 2147ITextPointer wordBoundary = textEditor.Selection.Start.CreatePointer(); 2307This.Selection.Start.CompareTo(movingPosition) < 0 && 2333return This.Selection.IsEmpty ? This.Selection.Start : This.Selection.Start.GetFrozenPointer(LogicalDirection.Forward); 2394if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.Start)) 2396ITextPointer position = This.Selection.Start.GetNextInsertionPosition(LogicalDirection.Backward);
System\windows\Documents\TextEditorSpelling.cs (9)
59LogicalDirection direction = This.Selection.IsEmpty ? This.Selection.Start.LogicalDirection : LogicalDirection.Forward; 62ITextPointer position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 68position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 83position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 88position = GetNextNonWhiteSpacePosition(This.Selection.Start, This.Selection.End); 92position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 337if (selection.Start is TextPointer) 339isSelectionIgnoringErrors = ((TextPointer)selection.Start).ParentBlock != ((TextPointer)selection.End).ParentBlock; 345isSelectionIgnoringErrors = selection.Start.GetOffsetToPosition(selection.End) >= 256;
System\windows\Documents\TextEditorTyping.cs (17)
590ITextPointer position = This.Selection.Start; 612(IsAtListItemChildStart(position, false /* emptyChildOnly */) || IsAtIndentedParagraphOrBlockUIContainerStart(This.Selection.Start))) 716position = This.Selection.Start; 916if (TextRangeEditTables.IsTableStructureCrossed(This.Selection.Start, wordBoundary)) 921ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 939This.Selection.Select(textRange.Start, textRange.End); 964ITextPointer wordBoundary = This.Selection.Start.CreatePointer(); 976if (TextRangeEditTables.IsTableStructureCrossed(wordBoundary, This.Selection.Start)) 999This.Selection.Select(textRange.Start, textRange.End); 1004This.Selection.Select(textRange.Start, textRange.End); 1066if (This.AcceptsRichContent && This.Selection.Start is TextPointer) 1163Invariant.Assert(This.Selection.Start is TextPointer); 1164TextPointer position = (TextPointer)This.Selection.Start; 1350if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1382if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1408This.Selection.SetCaretToPosition(This.Selection.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 1444TextElement parent = ((TextPointer)This.Selection.Start).Parent as TextElement;
System\Windows\Documents\TextParentUndoUnit.cs (1)
112ITextContainer textContainer = _selection.Start.TextContainer;
System\Windows\Documents\TextRange.cs (3)
300/// <see cref="ITextRange.Start"/> 317/// <see cref="ITextRange.Start"/> 1266return (TextPointer)((ITextRange)this).Start;
System\Windows\Documents\TextRangeBase.cs (37)
64if (textPointer.TextContainer != thisRange.Start.TextContainer) 72if (textPointer.CompareTo(thisRange.Start) < 0) 162ValidationHelper.VerifyPosition(thisRange.Start.TextContainer, position1, "position1"); 163ValidationHelper.VerifyPosition(thisRange.Start.TextContainer, position2, "position2"); 207!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Forward) && // 208!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Backward)) 212autoWordRange = TextPointerBase.GetWordRange(thisRange.Start); 215string textFromWordStart = TextRangeBase.GetTextInternal(autoWordRange.Start, thisRange.Start); 258if (thisRange.Start is TextPointer && 259(cell = TextRangeEditTables.GetTableCellFromPosition((TextPointer)thisRange.Start)) != null) 266thisRange.Select(thisRange.Start, thisRange.Start); 290if (!TextRangeEditTables.IsTableStructureCrossed(thisRange.Start, nextPosition)) 292TextRange range = new TextRange(thisRange.Start, nextPosition); 306thisRange.Select(thisRange.Start, newEnd); 391object startValue = GetCharacterValueFromPosition(thisRange.Start, formattingProperty); 502startValue = thisRange.Start.GetValue(formattingProperty); 511ITextPointer startNavigator = thisRange.Start.CreatePointer(); 574textContainer = thisRange.Start.TextContainer; 1213(thisRange.Start.CompareTo(thisRange.End) == 0), 1250ITextPointer start = thisRange.Start; 1295if (thisRange.Start is TextPointer && 1296((TextPointer)thisRange.Start).Parent == ((TextPointer)thisRange.End).Parent && 1297((TextPointer)thisRange.Start).Parent is Run && 1311if (thisRange.Start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 1321explicitInsertPosition = thisRange.Start; 1324TextContainer textContainer = ((TextPointer)thisRange.Start).TextContainer; 1325textContainer.DeleteContentInternal((TextPointer)thisRange.Start, (TextPointer)thisRange.End); 1329thisRange.Start.DeleteContentToPosition(thisRange.End); 1332if (thisRange.Start is TextPointer) 1334TextRangeEdit.MergeFlowDirection((TextPointer)thisRange.Start); 1337thisRange.Select(thisRange.Start, thisRange.Start); 1348ITextPointer insertPosition = (explicitInsertPosition == null) ? thisRange.Start : explicitInsertPosition; 1368insertPosition = thisRange.Start; 1616ITextPointer start = range.Start.CreatePointer(); 1667ITextContainer textContainer = thisRange.Start.TextContainer;
System\Windows\Documents\TextRangeEditTables.cs (3)
47if (!(range.Start is TextPointer)) 576Invariant.Assert(((ITextSelection)selection).Start is TextPointer); 590Invariant.Assert(((ITextSelection)selection).Start is TextPointer);
System\Windows\Documents\TextRangeSerialization.cs (7)
89int elementLevel = EmptyDocumentDepth + WriteOpeningTags(range, range.Start, commonAncestor, xmlWriter, xamlTypeMapper, /*reduceElement:*/wpfPayload == null, out ignoreWriteHyperlinkEnd, ref ignoreList, preserveTextElements); 97WriteXamlTextSegment(xmlWriter, range.Start, range.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements); 443if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 462if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 1669ITextPointer commonAncestor = range.Start.CreatePointer(); 1919if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start) && TextPointerBase.IsAtNonMergeableInlineEnd(range.End)) 1922hyperlinkStart = range.Start.CreatePointer(LogicalDirection.Forward);
System\windows\Documents\TextSelection.cs (24)
50SetActivePositions(/*AnchorPosition:*/thisSelection.Start, thisSelection.End); 110SetActivePositions(/*anchorPosition:*/thisSelection.Start, thisSelection.End); 304SetActivePositions(((ITextRange)this).Start, ((ITextRange)this).End); 397return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition; 413movingPosition = thisSelection.Start; 420movingPosition = thisSelection.Start; 537Invariant.Assert(thisSelection.Start.LogicalDirection == caretPosition.LogicalDirection); // orientation must be as passed 725if (_highlightLayer != null && thisSelection.Start.TextContainer.Highlights.GetLayer(typeof(TextSelection)) == _highlightLayer) 727thisSelection.Start.TextContainer.Highlights.RemoveLayer(_highlightLayer); 1416if (thisSelection.Start is TextPointer) 1444if (((ITextSelection)this).Start is TextPointer) 1521if (((ITextSelection)this).Start is TextPointer) 1537if (!(((ITextSelection)this).Start is TextPointer)) 1756return (This.Start.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text && 1758This.Start.GetNextInsertionPosition(LogicalDirection.Backward) == null && 1795ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1822ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1872if (_anchorPosition.CompareTo(thisSelection.Start) < 0) 1874_anchorPosition = thisSelection.Start.GetFrozenPointer(_anchorPosition.LogicalDirection); 1905if (movingPosition.CompareTo(thisSelection.Start) == 0) 2264FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2275nextCharacterPosition = focusedTextSelection.Start.CreatePointer(LogicalDirection.Forward); 2678position = TextPointerBase.GetFollowingNonMergeableInlineContentStart(This.Start); 2683position = This.Start;
System\windows\Documents\TextSelectionHighlightLayer.cs (2)
38_oldStart = _selection.Start; 192newStart = _selection.Start;
System\Windows\Documents\TextStore.cs (18)
331selection[0].start = this.TextSelection.Start.CharOffset; 333selection[0].style.ase = (this.TextSelection.MovingPosition.CompareTo(this.TextSelection.Start) == 0) ? UnsafeNativeMethods.TsActiveSelEnd.TS_AE_START : UnsafeNativeMethods.TsActiveSelEnd.TS_AE_END; 680GetAdjustedSelection(range.Start, range.End, out start, out end); 705string filteredText = FilterCompositionString(new string(text), range.Start.GetOffsetToPosition(range.End)); // does NOT filter MaxLength. 742if (start.CompareTo(this.TextSelection.Start) != 0 || 756_previousCompositionStartOffset = this.TextSelection.Start.Offset; 1509string filteredText = FilterCompositionString(result, TextSelection.Start.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength. 1767if ((compositionStart.CompareTo(TextSelection.Start) <= 0) && 1769(compositionEnd.CompareTo(TextSelection.Start) >= 0) && 1781fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1806fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1913pointer = this.TextSelection.Start.CreatePointer(direction); 1989CompositionParentUndoUnit compositionUndoUnit = OpenCompositionUndoUnit(range.Start, range.End); 2007this.TextSelection.Select(range.Start, range.End); 3141if (compositionStart != null && compositionStart.CompareTo(this.TextSelection.Start) > 0) 3147start = this.TextSelection.Start; 3592TextParentUndoUnit textParentUndoUnit = new TextParentUndoUnit(this.TextSelection, this.TextSelection.Start, this.TextSelection.Start);