1 implementation of Start
PresentationFramework (1)
src\Framework\System\Windows\Documents\TextRange.cs (1)
312ITextPointer ITextRange.Start
207 references to Start
PresentationFramework (207)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
459start = textRange.Start;
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
382start = textRange.Start;
src\Framework\MS\Internal\Documents\DocumentGrid.cs (4)
309ITextPointer tp = TextEditor.Selection.Start; 1308textRange.Select(textRange.Start, textRange.Start); //clear selection 2588ITextPointer tp = TextEditor.Selection.Start;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (11)
136if (textView != null && textView.Contains(textSelection.Start)) 142contentStart = findToolBar.SearchUp ? textContainer.Start : textSelection.Start; 143contentEnd = findToolBar.SearchUp ? textSelection.Start : textContainer.End; 206findResult = TextFindEngine.Find(textSelection.Start, textSelection.End, searchText, findFlags, cultureInfo); 211(findResult.Start != null) && 212(findResult.Start.CompareTo(textSelection.Start) == 0) && 218contentStart = findToolBar.SearchUp ? textSelection.Start : textSelection.End; 226contentStart = findToolBar.SearchUp ? textSelection.End : textSelection.Start; 247textSelection.Select(findResult.Start, findResult.End); 424contextMenuPosition = textContainer.TextSelection.Start.CreatePointer(LogicalDirection.Forward);
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (4)
208if(textSelection.Start != null && textSelection.Start.TextContainer == flowDocument.StructuralCache.TextContainer) 679if (findResult.Start is ContentPosition) 681BringContentPositionIntoView((ContentPosition)findResult.Start);
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1905GetTightBoundingGeometryFromLineIndexForSelection(line, lineIndex, selection.Start.CharOffset, selection.End.CharOffset, CalculatedTextAlignment, endOfParaGlyphWidth, ref selectionGeometry);
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (8)
612TextSelectionHelper.GetPointerPage(selection.Start, out selStartPage); 692ITextPointer start = selection.Start.CreatePointer(); 852if (((selection.Start.CompareTo(anchor.Start) > 0) && (selection.Start.CompareTo(anchor.End) < 0)) || 854((selection.Start.CompareTo(anchor.Start) <= 0) && (selection.End.CompareTo(anchor.End) >= 0)) || 876if (((anchor.Start.CompareTo(selection.Start) == 0) && 877(selection.Start.LogicalDirection == LogicalDirection.Forward)) || 966ITextRange anchor = new TextRange(selection.Start, selection.End);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (2)
1180if (findResult.Start is ContentPosition) 1184_contentPosition = (ContentPosition)findResult.Start;
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
483return new ITextRangeProvider[] { new TextRangeAdaptor(this, selection.Start, selection.End, _textPeer) };
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (7)
651if (expandStart && _start.CompareTo(textRange.Start) != 0) 653_start = textRange.Start.CreatePointer(); 874nextParagraphStart = textRange.Start; 887ITextPointer previousParagraphEnd = textRange.Start; 1123position.MoveToPosition(direction == LogicalDirection.Forward ? paragraphRange.End : paragraphRange.Start); 1130position.MoveToPosition(paragraphRange.Start); // Position it always at the beginning of the paragraph. 1798range = new TextRangeAdaptor(_textAdaptor, findResult.Start, findResult.End, _textPeer);
src\Framework\System\Windows\Documents\ImmComposition.cs (6)
730startNavigator = _editor.Selection.Start.CreatePointer(); 1111composition.SetCompositionPositions(_editor.Selection.Start, _editor.Selection.End, compositionString); 1273start = range.Start; 1277start = range.Start.CreatePointer(resultLength, LogicalDirection.Forward); 1561navigator = range.Start.CreatePointer(); 1694ITextPointer start = range.Start.CreatePointer(LogicalDirection.Backward);
src\Framework\System\Windows\Documents\Speller.cs (1)
770caretPosition = _textEditor.Selection.Start;
src\Framework\System\windows\Documents\TextEditor.cs (2)
1195return _FilterText(textData, range.Start.GetOffsetToPosition(range.End)); 1205return _FilterText(textData, range.Start.GetOffsetToPosition(range.End), filterMaxLength);
src\Framework\System\windows\Documents\TextEditorCharacters.cs (2)
140if (This == null || !This._IsEnabled || This.IsReadOnly || !This.AcceptsRichContent || !(This.Selection.Start is TextPointer)) 150TextPointer startResetFormatPosition = (TextPointer)This.Selection.Start;
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (2)
92TextPointer start = GetContentPosition(This.Selection.Start) as TextPointer; 199position = This.Selection.Start;
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (4)
1070TextRangeEditLists.MergeListsAroundNormalizedPosition((TextPointer)This.Selection.Start); 1074TextRangeEdit.MergeFlowDirection((TextPointer)This.Selection.Start); 1130if (This.AcceptsRichContent && This.Selection.Start is TextPointer) 1136TextPointer start = TextRangeEditTables.EnsureInsertionPosition((TextPointer)This.Selection.Start);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (6)
194_dragSourceTextRange = new TextRange(selection.Start, selection.End); 496TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.Start, LogicalDirection.Forward) && // 568if (_dragSourceTextRange != null && _dragSourceTextRange.Start.TextContainer == selection.Start.TextContainer && 597_dragSourceTextRange != null && _dragSourceTextRange.Start.TextContainer == selection.Start.TextContainer)
src\Framework\System\windows\Documents\TextEditorSelection.cs (23)
146return new TextSegment(textRange.Start, textRange.End); 368if (!This.Selection.Start.ValidateLayout()) 491This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 537if (This.Selection.Start.CompareTo(paragraphRange.Start) > 0) 540This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 544movingPointer.MoveToPosition(paragraphRange.Start); 549This.Selection.SetCaretToPosition(paragraphRange.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 688if (!This.Selection.Start.ValidateLayout()) 1349ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 1385if (movingPointer.CompareTo(paragraphRange.Start) > 0) 1388ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 1392movingPointer.MoveToPosition(paragraphRange.Start); 1397ExtendSelectionAndBringIntoView(paragraphRange.Start, This); 2081ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.Start); 2162if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.Start, LogicalDirection.Forward)) 2165textEditor.Selection.SetCaretToPosition(textEditor.Selection.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 2171ITextPointer wordBoundary = textEditor.Selection.Start.CreatePointer(); 2331This.Selection.Start.CompareTo(movingPosition) < 0 && 2357return This.Selection.IsEmpty ? This.Selection.Start : This.Selection.Start.GetFrozenPointer(LogicalDirection.Forward); 2418if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.Start)) 2420ITextPointer position = This.Selection.Start.GetNextInsertionPosition(LogicalDirection.Backward);
src\Framework\System\windows\Documents\TextEditorSpelling.cs (9)
62LogicalDirection direction = This.Selection.IsEmpty ? This.Selection.Start.LogicalDirection : LogicalDirection.Forward; 65ITextPointer position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 71position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 86position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 91position = GetNextNonWhiteSpacePosition(This.Selection.Start, This.Selection.End); 95position = GetNextTextPosition(This.Selection.Start, null /* limit */, direction, out character); 340if (selection.Start is TextPointer) 342isSelectionIgnoringErrors = ((TextPointer)selection.Start).ParentBlock != ((TextPointer)selection.End).ParentBlock; 348isSelectionIgnoringErrors = selection.Start.GetOffsetToPosition(selection.End) >= 256;
src\Framework\System\windows\Documents\TextEditorTyping.cs (17)
615ITextPointer position = This.Selection.Start; 637(IsAtListItemChildStart(position, false /* emptyChildOnly */) || IsAtIndentedParagraphOrBlockUIContainerStart(This.Selection.Start))) 741position = This.Selection.Start; 942if (TextRangeEditTables.IsTableStructureCrossed(This.Selection.Start, wordBoundary)) 947ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary); 965This.Selection.Select(textRange.Start, textRange.End); 990ITextPointer wordBoundary = This.Selection.Start.CreatePointer(); 1002if (TextRangeEditTables.IsTableStructureCrossed(wordBoundary, This.Selection.Start)) 1025This.Selection.Select(textRange.Start, textRange.End); 1030This.Selection.Select(textRange.Start, textRange.End); 1092if (This.AcceptsRichContent && This.Selection.Start is TextPointer) 1189Invariant.Assert(This.Selection.Start is TextPointer); 1190TextPointer position = (TextPointer)This.Selection.Start; 1376if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1408if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.Start)) && 1434This.Selection.SetCaretToPosition(This.Selection.Start, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); 1470TextElement parent = ((TextPointer)This.Selection.Start).Parent as TextElement;
src\Framework\System\Windows\Documents\TextParentUndoUnit.cs (1)
128ITextContainer textContainer = _selection.Start.TextContainer;
src\Framework\System\Windows\Documents\TextRange.cs (3)
293/// <see cref="ITextRange.Start"/> 310/// <see cref="ITextRange.Start"/> 1266return (TextPointer)((ITextRange)this).Start;
src\Framework\System\Windows\Documents\TextRangeBase.cs (37)
72if (textPointer.TextContainer != thisRange.Start.TextContainer) 80if (textPointer.CompareTo(thisRange.Start) < 0) 170ValidationHelper.VerifyPosition(thisRange.Start.TextContainer, position1, "position1"); 171ValidationHelper.VerifyPosition(thisRange.Start.TextContainer, position2, "position2"); 218!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Forward) && // 219!TextPointerBase.IsAtWordBoundary(thisRange.Start, LogicalDirection.Backward)) 223autoWordRange = TextPointerBase.GetWordRange(thisRange.Start); 226string textFromWordStart = TextRangeBase.GetTextInternal(autoWordRange.Start, thisRange.Start); 272if (thisRange.Start is TextPointer && 273(cell = TextRangeEditTables.GetTableCellFromPosition((TextPointer)thisRange.Start)) != null) 280thisRange.Select(thisRange.Start, thisRange.Start); 304if (!TextRangeEditTables.IsTableStructureCrossed(thisRange.Start, nextPosition)) 306TextRange range = new TextRange(thisRange.Start, nextPosition); 320thisRange.Select(thisRange.Start, newEnd); 405object startValue = GetCharacterValueFromPosition(thisRange.Start, formattingProperty); 516startValue = thisRange.Start.GetValue(formattingProperty); 525ITextPointer startNavigator = thisRange.Start.CreatePointer(); 588textContainer = thisRange.Start.TextContainer; 1227(thisRange.Start.CompareTo(thisRange.End) == 0), 1264ITextPointer start = thisRange.Start; 1312if (thisRange.Start is TextPointer && 1313((TextPointer)thisRange.Start).Parent == ((TextPointer)thisRange.End).Parent && 1314((TextPointer)thisRange.Start).Parent is Run && 1328if (thisRange.Start.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text && 1338explicitInsertPosition = thisRange.Start; 1341TextContainer textContainer = ((TextPointer)thisRange.Start).TextContainer; 1342textContainer.DeleteContentInternal((TextPointer)thisRange.Start, (TextPointer)thisRange.End); 1346thisRange.Start.DeleteContentToPosition(thisRange.End); 1349if (thisRange.Start is TextPointer) 1351TextRangeEdit.MergeFlowDirection((TextPointer)thisRange.Start); 1354thisRange.Select(thisRange.Start, thisRange.Start); 1365ITextPointer insertPosition = (explicitInsertPosition == null) ? thisRange.Start : explicitInsertPosition; 1385insertPosition = thisRange.Start; 1647ITextPointer start = range.Start.CreatePointer(); 1698ITextContainer textContainer = thisRange.Start.TextContainer;
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (3)
51if (!(range.Start is TextPointer)) 581Invariant.Assert(((ITextSelection)selection).Start is TextPointer); 595Invariant.Assert(((ITextSelection)selection).Start is TextPointer);
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (7)
97int elementLevel = EmptyDocumentDepth + WriteOpeningTags(range, range.Start, commonAncestor, xmlWriter, xamlTypeMapper, /*reduceElement:*/wpfPayload == null, out ignoreWriteHyperlinkEnd, ref ignoreList, preserveTextElements); 105WriteXamlTextSegment(xmlWriter, range.Start, range.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements); 455if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 474if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start)) 1695ITextPointer commonAncestor = range.Start.CreatePointer(); 1945if (TextPointerBase.IsAtNonMergeableInlineStart(range.Start) && TextPointerBase.IsAtNonMergeableInlineEnd(range.End)) 1948hyperlinkStart = range.Start.CreatePointer(LogicalDirection.Forward);
src\Framework\System\windows\Documents\TextSelection.cs (24)
56SetActivePositions(/*AnchorPosition:*/thisSelection.Start, thisSelection.End); 116SetActivePositions(/*anchorPosition:*/thisSelection.Start, thisSelection.End); 310SetActivePositions(((ITextRange)this).Start, ((ITextRange)this).End); 403return this.IsEmpty ? ((ITextSelection)this).Start : _anchorPosition; 419movingPosition = thisSelection.Start; 426movingPosition = thisSelection.Start; 543Invariant.Assert(thisSelection.Start.LogicalDirection == caretPosition.LogicalDirection); // orientation must be as passed 731if (_highlightLayer != null && thisSelection.Start.TextContainer.Highlights.GetLayer(typeof(TextSelection)) == _highlightLayer) 733thisSelection.Start.TextContainer.Highlights.RemoveLayer(_highlightLayer); 1422if (thisSelection.Start is TextPointer) 1450if (((ITextSelection)this).Start is TextPointer) 1527if (((ITextSelection)this).Start is TextPointer) 1543if (!(((ITextSelection)this).Start is TextPointer)) 1767return (This.Start.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text && 1769This.Start.GetNextInsertionPosition(LogicalDirection.Backward) == null && 1806ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1833ITextContainer textContainer = ((ITextSelection)this).Start.TextContainer; 1883if (_anchorPosition.CompareTo(thisSelection.Start) < 0) 1885_anchorPosition = thisSelection.Start.GetFrozenPointer(_anchorPosition.LogicalDirection); 1916if (movingPosition.CompareTo(thisSelection.Start) == 0) 2275FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2286nextCharacterPosition = focusedTextSelection.Start.CreatePointer(LogicalDirection.Forward); 2694position = TextPointerBase.GetFollowingNonMergeableInlineContentStart(This.Start); 2699position = This.Start;
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (2)
45_oldStart = _selection.Start; 200newStart = _selection.Start;
src\Framework\System\Windows\Documents\TextStore.cs (18)
249selection[0].start = this.TextSelection.Start.CharOffset; 251selection[0].style.ase = (this.TextSelection.MovingPosition.CompareTo(this.TextSelection.Start) == 0) ? UnsafeNativeMethods.TsActiveSelEnd.TS_AE_START : UnsafeNativeMethods.TsActiveSelEnd.TS_AE_END; 559GetAdjustedSelection(range.Start, range.End, out start, out end); 584string filteredText = FilterCompositionString(new string(text), range.Start.GetOffsetToPosition(range.End)); // does NOT filter MaxLength. 621if (start.CompareTo(this.TextSelection.Start) != 0 || 635_previousCompositionStartOffset = this.TextSelection.Start.Offset; 1385string filteredText = FilterCompositionString(result, TextSelection.Start.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength. 1649if ((compositionStart.CompareTo(TextSelection.Start) <= 0) && 1651(compositionEnd.CompareTo(TextSelection.Start) >= 0) && 1663fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1692fReconvertable = GetFnReconv(TextSelection.Start, TextSelection.End, out funcReconv, out range); 1808pointer = this.TextSelection.Start.CreatePointer(direction); 1878CompositionParentUndoUnit compositionUndoUnit = OpenCompositionUndoUnit(range.Start, range.End); 1896this.TextSelection.Select(range.Start, range.End); 3061if (compositionStart != null && compositionStart.CompareTo(this.TextSelection.Start) > 0) 3067start = this.TextSelection.Start; 3505TextParentUndoUnit textParentUndoUnit = new TextParentUndoUnit(this.TextSelection, this.TextSelection.Start, this.TextSelection.Start);