1 implementation of Start
PresentationFramework (1)
System\Windows\Documents\TextRange.cs (1)
322
ITextPointer ITextRange.
Start
207 references to Start
PresentationFramework (207)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
448
start = textRange.
Start
;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
372
start = textRange.
Start
;
MS\Internal\Documents\DocumentGrid.cs (4)
302
ITextPointer tp = TextEditor.Selection.
Start
;
1283
textRange.Select(textRange.
Start
, textRange.
Start
); //clear selection
2546
ITextPointer tp = TextEditor.Selection.
Start
;
MS\Internal\Documents\DocumentViewerHelper.cs (11)
121
if (textView != null && textView.Contains(textSelection.
Start
))
127
contentStart = findToolBar.SearchUp ? textContainer.Start : textSelection.
Start
;
128
contentEnd = findToolBar.SearchUp ? textSelection.
Start
: textContainer.End;
191
findResult = TextFindEngine.Find(textSelection.
Start
, textSelection.End, searchText, findFlags, cultureInfo);
196
(findResult.
Start
!= null) &&
197
(findResult.
Start
.CompareTo(textSelection.
Start
) == 0) &&
203
contentStart = findToolBar.SearchUp ? textSelection.
Start
: textSelection.End;
211
contentStart = findToolBar.SearchUp ? textSelection.End : textSelection.
Start
;
232
textSelection.Select(findResult.
Start
, findResult.End);
404
contextMenuPosition = textContainer.TextSelection.
Start
.CreatePointer(LogicalDirection.Forward);
MS\Internal\Documents\IFlowDocumentViewer.cs (4)
207
if (textSelection.
Start
!= null && textSelection.
Start
.TextContainer == flowDocument.StructuralCache.TextContainer)
678
if (findResult.
Start
is ContentPosition)
680
BringContentPositionIntoView((ContentPosition)findResult.
Start
);
MS\Internal\Documents\TextBoxView.cs (1)
1907
GetTightBoundingGeometryFromLineIndexForSelection(line, lineIndex, selection.
Start
.CharOffset, selection.End.CharOffset, CalculatedTextAlignment, endOfParaGlyphWidth, ref selectionGeometry);
System\Windows\Annotations\AnnotationHelper.cs (8)
605
TextSelectionHelper.GetPointerPage(selection.
Start
, out selStartPage);
685
ITextPointer start = selection.
Start
.CreatePointer();
845
if (((selection.
Start
.CompareTo(anchor.Start) > 0) && (selection.
Start
.CompareTo(anchor.End) < 0)) ||
847
((selection.
Start
.CompareTo(anchor.Start) <= 0) && (selection.End.CompareTo(anchor.End) >= 0)) ||
869
if (((anchor.Start.CompareTo(selection.
Start
) == 0) &&
870
(selection.
Start
.LogicalDirection == LogicalDirection.Forward)) ||
958
ITextRange anchor = new TextRange(selection.
Start
, selection.End);
System\Windows\Controls\SinglePageViewer.cs (2)
1173
if (findResult.
Start
is ContentPosition)
1177
_contentPosition = (ContentPosition)findResult.
Start
;
System\Windows\Controls\TextAdaptor.cs (1)
502
return new ITextRangeProvider[] { new TextRangeAdaptor(this, selection.
Start
, selection.End, _textPeer) };
System\Windows\Controls\TextRangeAdaptor.cs (7)
643
if (expandStart && _start.CompareTo(textRange.
Start
) != 0)
645
_start = textRange.
Start
.CreatePointer();
866
nextParagraphStart = textRange.
Start
;
879
ITextPointer previousParagraphEnd = textRange.
Start
;
1114
position.MoveToPosition(direction == LogicalDirection.Forward ? paragraphRange.End : paragraphRange.
Start
);
1121
position.MoveToPosition(paragraphRange.
Start
); // Position it always at the beginning of the paragraph.
1777
range = new TextRangeAdaptor(_textAdaptor, findResult.
Start
, findResult.End, _textPeer);
System\Windows\Documents\ImmComposition.cs (6)
634
startNavigator = _editor.Selection.
Start
.CreatePointer();
989
composition.SetCompositionPositions(_editor.Selection.
Start
, _editor.Selection.End, compositionString);
1141
start = range.
Start
;
1145
start = range.
Start
.CreatePointer(resultLength, LogicalDirection.Forward);
1414
navigator = range.
Start
.CreatePointer();
1543
ITextPointer start = range.
Start
.CreatePointer(LogicalDirection.Backward);
System\Windows\Documents\Speller.cs (1)
703
caretPosition = _textEditor.Selection.
Start
;
System\windows\Documents\TextEditor.cs (2)
1168
return _FilterText(textData, range.
Start
.GetOffsetToPosition(range.End));
1178
return _FilterText(textData, range.
Start
.GetOffsetToPosition(range.End), filterMaxLength);
System\windows\Documents\TextEditorCharacters.cs (2)
138
if (This == null || !This._IsEnabled || This.IsReadOnly || !This.AcceptsRichContent || !(This.Selection.
Start
is TextPointer))
148
TextPointer startResetFormatPosition = (TextPointer)This.Selection.
Start
;
System\windows\Documents\TextEditorContextMenu.cs (2)
83
TextPointer start = GetContentPosition(This.Selection.
Start
) as TextPointer;
190
position = This.Selection.
Start
;
System\windows\Documents\TextEditorCopyPaste.cs (4)
894
TextRangeEditLists.MergeListsAroundNormalizedPosition((TextPointer)This.Selection.
Start
);
898
TextRangeEdit.MergeFlowDirection((TextPointer)This.Selection.
Start
);
953
if (This.AcceptsRichContent && This.Selection.
Start
is TextPointer)
959
TextPointer start = TextRangeEditTables.EnsureInsertionPosition((TextPointer)This.Selection.
Start
);
System\windows\Documents\TextEditorDragDrop.cs (6)
183
_dragSourceTextRange = new TextRange(selection.
Start
, selection.End);
484
TextPointerBase.IsAtWordBoundary(_dragSourceTextRange.
Start
, LogicalDirection.Forward) && //
556
if (_dragSourceTextRange != null && _dragSourceTextRange.
Start
.TextContainer == selection.
Start
.TextContainer &&
585
_dragSourceTextRange != null && _dragSourceTextRange.
Start
.TextContainer == selection.
Start
.TextContainer)
System\windows\Documents\TextEditorSelection.cs (23)
138
return new TextSegment(textRange.
Start
, textRange.End);
360
if (!This.Selection.
Start
.ValidateLayout())
483
This.Selection.SetCaretToPosition(paragraphRange.
Start
, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
529
if (This.Selection.
Start
.CompareTo(paragraphRange.
Start
) > 0)
532
This.Selection.SetCaretToPosition(paragraphRange.
Start
, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
536
movingPointer.MoveToPosition(paragraphRange.
Start
);
541
This.Selection.SetCaretToPosition(paragraphRange.
Start
, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
679
if (!This.Selection.
Start
.ValidateLayout())
1340
ExtendSelectionAndBringIntoView(paragraphRange.
Start
, This);
1376
if (movingPointer.CompareTo(paragraphRange.
Start
) > 0)
1379
ExtendSelectionAndBringIntoView(paragraphRange.
Start
, This);
1383
movingPointer.MoveToPosition(paragraphRange.
Start
);
1388
ExtendSelectionAndBringIntoView(paragraphRange.
Start
, This);
2072
ITextPointer movingEnd = (direction == LogicalDirection.Forward ? textEditor.Selection.End : textEditor.Selection.
Start
);
2153
if (!textEditor.Selection.IsEmpty && TextPointerBase.IsAtWordBoundary(textEditor.Selection.
Start
, LogicalDirection.Forward))
2156
textEditor.Selection.SetCaretToPosition(textEditor.Selection.
Start
, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
2162
ITextPointer wordBoundary = textEditor.Selection.
Start
.CreatePointer();
2322
This.Selection.
Start
.CompareTo(movingPosition) < 0 &&
2348
return This.Selection.IsEmpty ? This.Selection.
Start
: This.Selection.
Start
.GetFrozenPointer(LogicalDirection.Forward);
2409
if (This.Selection.IsEmpty && TextPointerBase.IsAtRowEnd(This.Selection.
Start
))
2411
ITextPointer position = This.Selection.
Start
.GetNextInsertionPosition(LogicalDirection.Backward);
System\windows\Documents\TextEditorSpelling.cs (9)
60
LogicalDirection direction = This.Selection.IsEmpty ? This.Selection.
Start
.LogicalDirection : LogicalDirection.Forward;
63
ITextPointer position = GetNextTextPosition(This.Selection.
Start
, null /* limit */, direction, out character);
69
position = GetNextTextPosition(This.Selection.
Start
, null /* limit */, direction, out character);
84
position = GetNextTextPosition(This.Selection.
Start
, null /* limit */, direction, out character);
89
position = GetNextNonWhiteSpacePosition(This.Selection.
Start
, This.Selection.End);
93
position = GetNextTextPosition(This.Selection.
Start
, null /* limit */, direction, out character);
338
if (selection.
Start
is TextPointer)
340
isSelectionIgnoringErrors = ((TextPointer)selection.
Start
).ParentBlock != ((TextPointer)selection.End).ParentBlock;
346
isSelectionIgnoringErrors = selection.
Start
.GetOffsetToPosition(selection.End) >= 256;
System\windows\Documents\TextEditorTyping.cs (17)
599
ITextPointer position = This.Selection.
Start
;
621
(IsAtListItemChildStart(position, false /* emptyChildOnly */) || IsAtIndentedParagraphOrBlockUIContainerStart(This.Selection.
Start
)))
725
position = This.Selection.
Start
;
925
if (TextRangeEditTables.IsTableStructureCrossed(This.Selection.
Start
, wordBoundary))
930
ITextRange textRange = new TextRange(This.Selection.
Start
, wordBoundary);
948
This.Selection.Select(textRange.
Start
, textRange.End);
973
ITextPointer wordBoundary = This.Selection.
Start
.CreatePointer();
985
if (TextRangeEditTables.IsTableStructureCrossed(wordBoundary, This.Selection.
Start
))
1008
This.Selection.Select(textRange.
Start
, textRange.End);
1013
This.Selection.Select(textRange.
Start
, textRange.End);
1075
if (This.AcceptsRichContent && This.Selection.
Start
is TextPointer)
1172
Invariant.Assert(This.Selection.
Start
is TextPointer);
1173
TextPointer position = (TextPointer)This.Selection.
Start
;
1359
if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.
Start
)) &&
1391
if (This.AcceptsRichContent && (!This.Selection.IsEmpty || TextPointerBase.IsAtParagraphOrBlockUIContainerStart(This.Selection.
Start
)) &&
1417
This.Selection.SetCaretToPosition(This.Selection.
Start
, LogicalDirection.Backward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false);
1453
TextElement parent = ((TextPointer)This.Selection.
Start
).Parent as TextElement;
System\Windows\Documents\TextParentUndoUnit.cs (1)
123
ITextContainer textContainer = _selection.
Start
.TextContainer;
System\Windows\Documents\TextRange.cs (3)
303
/// <see cref="ITextRange.
Start
"/>
320
/// <see cref="ITextRange.
Start
"/>
1269
return (TextPointer)((ITextRange)this).
Start
;
System\Windows\Documents\TextRangeBase.cs (37)
67
if (textPointer.TextContainer != thisRange.
Start
.TextContainer)
75
if (textPointer.CompareTo(thisRange.
Start
) < 0)
165
ValidationHelper.VerifyPosition(thisRange.
Start
.TextContainer, position1, "position1");
166
ValidationHelper.VerifyPosition(thisRange.
Start
.TextContainer, position2, "position2");
210
!TextPointerBase.IsAtWordBoundary(thisRange.
Start
, LogicalDirection.Forward) && //
211
!TextPointerBase.IsAtWordBoundary(thisRange.
Start
, LogicalDirection.Backward))
215
autoWordRange = TextPointerBase.GetWordRange(thisRange.
Start
);
218
string textFromWordStart = TextRangeBase.GetTextInternal(autoWordRange.Start, thisRange.
Start
);
261
if (thisRange.
Start
is TextPointer &&
262
(cell = TextRangeEditTables.GetTableCellFromPosition((TextPointer)thisRange.
Start
)) != null)
269
thisRange.Select(thisRange.
Start
, thisRange.
Start
);
293
if (!TextRangeEditTables.IsTableStructureCrossed(thisRange.
Start
, nextPosition))
295
TextRange range = new TextRange(thisRange.
Start
, nextPosition);
309
thisRange.Select(thisRange.
Start
, newEnd);
394
object startValue = GetCharacterValueFromPosition(thisRange.
Start
, formattingProperty);
505
startValue = thisRange.
Start
.GetValue(formattingProperty);
514
ITextPointer startNavigator = thisRange.
Start
.CreatePointer();
577
textContainer = thisRange.
Start
.TextContainer;
1216
(thisRange.
Start
.CompareTo(thisRange.End) == 0),
1253
ITextPointer start = thisRange.
Start
;
1298
if (thisRange.
Start
is TextPointer &&
1299
((TextPointer)thisRange.
Start
).Parent == ((TextPointer)thisRange.End).Parent &&
1300
((TextPointer)thisRange.
Start
).Parent is Run &&
1314
if (thisRange.
Start
.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text &&
1324
explicitInsertPosition = thisRange.
Start
;
1327
TextContainer textContainer = ((TextPointer)thisRange.
Start
).TextContainer;
1328
textContainer.DeleteContentInternal((TextPointer)thisRange.
Start
, (TextPointer)thisRange.End);
1332
thisRange.
Start
.DeleteContentToPosition(thisRange.End);
1335
if (thisRange.
Start
is TextPointer)
1337
TextRangeEdit.MergeFlowDirection((TextPointer)thisRange.
Start
);
1340
thisRange.Select(thisRange.
Start
, thisRange.
Start
);
1351
ITextPointer insertPosition = (explicitInsertPosition == null) ? thisRange.
Start
: explicitInsertPosition;
1371
insertPosition = thisRange.
Start
;
1619
ITextPointer start = range.
Start
.CreatePointer();
1670
ITextContainer textContainer = thisRange.
Start
.TextContainer;
System\Windows\Documents\TextRangeEditTables.cs (3)
49
if (!(range.
Start
is TextPointer))
578
Invariant.Assert(((ITextSelection)selection).
Start
is TextPointer);
592
Invariant.Assert(((ITextSelection)selection).
Start
is TextPointer);
System\Windows\Documents\TextRangeSerialization.cs (7)
95
int elementLevel = EmptyDocumentDepth + WriteOpeningTags(range, range.
Start
, commonAncestor, xmlWriter, xamlTypeMapper, /*reduceElement:*/wpfPayload == null, out ignoreWriteHyperlinkEnd, ref ignoreList, preserveTextElements);
103
WriteXamlTextSegment(xmlWriter, range.
Start
, range.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements);
449
if (TextPointerBase.IsAtNonMergeableInlineStart(range.
Start
))
468
if (TextPointerBase.IsAtNonMergeableInlineStart(range.
Start
))
1675
ITextPointer commonAncestor = range.
Start
.CreatePointer();
1925
if (TextPointerBase.IsAtNonMergeableInlineStart(range.
Start
) && TextPointerBase.IsAtNonMergeableInlineEnd(range.End))
1928
hyperlinkStart = range.
Start
.CreatePointer(LogicalDirection.Forward);
System\windows\Documents\TextSelection.cs (24)
53
SetActivePositions(/*AnchorPosition:*/thisSelection.
Start
, thisSelection.End);
113
SetActivePositions(/*anchorPosition:*/thisSelection.
Start
, thisSelection.End);
307
SetActivePositions(((ITextRange)this).
Start
, ((ITextRange)this).End);
400
return this.IsEmpty ? ((ITextSelection)this).
Start
: _anchorPosition;
416
movingPosition = thisSelection.
Start
;
423
movingPosition = thisSelection.
Start
;
540
Invariant.Assert(thisSelection.
Start
.LogicalDirection == caretPosition.LogicalDirection); // orientation must be as passed
728
if (_highlightLayer != null && thisSelection.
Start
.TextContainer.Highlights.GetLayer(typeof(TextSelection)) == _highlightLayer)
730
thisSelection.
Start
.TextContainer.Highlights.RemoveLayer(_highlightLayer);
1419
if (thisSelection.
Start
is TextPointer)
1447
if (((ITextSelection)this).
Start
is TextPointer)
1524
if (((ITextSelection)this).
Start
is TextPointer)
1540
if (!(((ITextSelection)this).
Start
is TextPointer))
1759
return (This.
Start
.GetPointerContext(LogicalDirection.Backward) != TextPointerContext.Text &&
1761
This.
Start
.GetNextInsertionPosition(LogicalDirection.Backward) == null &&
1798
ITextContainer textContainer = ((ITextSelection)this).
Start
.TextContainer;
1825
ITextContainer textContainer = ((ITextSelection)this).
Start
.TextContainer;
1875
if (_anchorPosition.CompareTo(thisSelection.
Start
) < 0)
1877
_anchorPosition = thisSelection.
Start
.GetFrozenPointer(_anchorPosition.LogicalDirection);
1908
if (movingPosition.CompareTo(thisSelection.
Start
) == 0)
2267
FlowDirection flowDirection = (FlowDirection)focusedTextSelection.
Start
.GetValue(FrameworkElement.FlowDirectionProperty);
2278
nextCharacterPosition = focusedTextSelection.
Start
.CreatePointer(LogicalDirection.Forward);
2681
position = TextPointerBase.GetFollowingNonMergeableInlineContentStart(This.
Start
);
2686
position = This.
Start
;
System\windows\Documents\TextSelectionHighlightLayer.cs (2)
40
_oldStart = _selection.
Start
;
194
newStart = _selection.
Start
;
System\Windows\Documents\TextStore.cs (18)
342
selection[0].start = this.TextSelection.
Start
.CharOffset;
344
selection[0].style.ase = (this.TextSelection.MovingPosition.CompareTo(this.TextSelection.
Start
) == 0) ? UnsafeNativeMethods.TsActiveSelEnd.TS_AE_START : UnsafeNativeMethods.TsActiveSelEnd.TS_AE_END;
691
GetAdjustedSelection(range.
Start
, range.End, out start, out end);
716
string filteredText = FilterCompositionString(new string(text), range.
Start
.GetOffsetToPosition(range.End)); // does NOT filter MaxLength.
753
if (start.CompareTo(this.TextSelection.
Start
) != 0 ||
767
_previousCompositionStartOffset = this.TextSelection.
Start
.Offset;
1520
string filteredText = FilterCompositionString(result, TextSelection.
Start
.GetOffsetToPosition(TextSelection.End)); // does NOT filter MaxLength.
1778
if ((compositionStart.CompareTo(TextSelection.
Start
) <= 0) &&
1780
(compositionEnd.CompareTo(TextSelection.
Start
) >= 0) &&
1792
fReconvertable = GetFnReconv(TextSelection.
Start
, TextSelection.End, out funcReconv, out range);
1817
fReconvertable = GetFnReconv(TextSelection.
Start
, TextSelection.End, out funcReconv, out range);
1924
pointer = this.TextSelection.
Start
.CreatePointer(direction);
2000
CompositionParentUndoUnit compositionUndoUnit = OpenCompositionUndoUnit(range.
Start
, range.End);
2018
this.TextSelection.Select(range.
Start
, range.End);
3152
if (compositionStart != null && compositionStart.CompareTo(this.TextSelection.
Start
) > 0)
3158
start = this.TextSelection.
Start
;
3603
TextParentUndoUnit textParentUndoUnit = new TextParentUndoUnit(this.TextSelection, this.TextSelection.
Start
, this.TextSelection.
Start
);