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