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