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