7 writes to TextView
PresentationFramework (7)
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
991
TextView
= textView
System\Windows\Controls\PasswordBox.cs (2)
1022
_textEditor.
TextView
= textview;
1035
_textEditor.
TextView
= null;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1020
TextView
= _textView
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1818
_textEditor.
TextView
= textView; // REVIEW:benwest: this is redundant! TextEditor already has a ref to TextContainer!
1833
_textEditor.
TextView
= null;
System\windows\Documents\TextEditor.cs (1)
198
this.
TextView
= null;
188 references to TextView
PresentationFramework (188)
MS\Internal\Documents\DocumentGrid.cs (1)
918
return TextEditor.
TextView
;
MS\Internal\Documents\TextBoxLine.cs (1)
453
if ((textEditor?.
TextView
?.RendersOwnSelection == true)
System\Windows\Controls\FlowDocumentReader.cs (2)
1558
findResult = DocumentViewerHelper.Find(findToolBar, textEditor, textEditor.
TextView
, textEditor.
TextView
);
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1514
findResult = DocumentViewerHelper.Find(findToolBar, _textEditor, _textEditor.
TextView
, _textEditor.
TextView
);
System\windows\Documents\CaretElement.cs (9)
44
internal CaretElement(TextEditor textEditor, bool isBlinkEnabled) : base(textEditor.
TextView
.RenderScope)
46
Invariant.Assert(textEditor.
TextView
!= null && textEditor.
TextView
.RenderScope != null, "Assert: textView != null && RenderScope != null");
370
MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.
TextView
, new Rect(scrollToOriginPosition, scrollRectangle.Y, scrollRectangle.Width, scrollRectangle.Height));
378
MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.
TextView
, scrollRectangle);
392
GeneralTransform transform = _textEditor.
TextView
.RenderScope.TransformToAncestor(scroller);
440
if (!_textEditor.Selection.MovingPosition.HasValidLayout && _textEditor.
TextView
!= null && _textEditor.
TextView
.IsValid)
860
AdornerLayer layer = AdornerLayer.GetAdornerLayer(_textEditor.
TextView
.RenderScope);
System\Windows\Documents\ImmComposition.cs (5)
720
view = _editor.
TextView
;
1172
_compositionAdorner = new CompositionAdorner(_editor.
TextView
);
1173
_compositionAdorner.Initialize(_editor.
TextView
);
1241
_editor.
TextView
.RenderScope.UpdateLayout();
1849
get { return _editor.
TextView
?.RenderScope; }
System\windows\Documents\TextEditor.cs (9)
1321
FrameworkElement scroller = this.
TextView
== null ? null : (this.
TextView
.RenderScope as FrameworkElement);
1459
this.
TextView
!= null && this.
TextView
.IsValid && TextEditorSelection.IsPaginated(this.
TextView
))
1462
this.
TextView
.BringPointIntoViewCompleted += new BringPointIntoViewCompletedEventHandler(HandleBringPointIntoViewCompleted);
1463
this.
TextView
.BringPointIntoViewAsync(_mouseSelectionState.Point, this);
1490
Invariant.Assert(e.UserState == this && this.
TextView
== sender);
1598
if (this.
TextView
== null)
System\windows\Documents\TextEditorContextMenu.cs (3)
49
if (This == null || This.
TextView
== null)
56
Point renderScopeMouseDownPoint = Mouse.GetPosition(This.
TextView
.RenderScope);
270
FrameworkElement element = This.
TextView
.RenderScope as FrameworkElement;
System\windows\Documents\TextEditorDragDrop.cs (31)
126
Point mouseDownPoint = e.GetPosition(_textEditor.
TextView
.RenderScope);
341
if (!_textEditor.
TextView
.Validate(e.GetPosition(_textEditor.
TextView
.RenderScope)))
401
_textEditor.
TextView
.RenderScope.UpdateLayout(); // REVIEW:benwest:6/27/2006: This should use TextView.Validate, and check the return value instead of using IsValid below.
403
if (_textEditor.
TextView
.IsValid)
405
ITextPointer dragPosition = GetDropPosition(_textEditor.
TextView
.RenderScope as Visual, e.GetPosition(_textEditor.
TextView
.RenderScope));
439
Invariant.Assert(_textEditor.
TextView
.IsValid); // caller must guarantee this.
442
if (target != _textEditor.
TextView
.RenderScope && target != null && (_textEditor.
TextView
.RenderScope).IsAncestorOf(target))
444
GeneralTransform transform = target.TransformToAncestor(_textEditor.
TextView
.RenderScope);
528
if (!_textEditor.
TextView
.Validate(e.GetPosition(_textEditor.
TextView
.RenderScope)))
535
ITextPointer dropPosition = GetDropPosition(_textEditor.
TextView
.RenderScope as Visual, e.GetPosition(_textEditor.
TextView
.RenderScope));
628
if (!_textEditor.IsReadOnly && _textEditor.
TextView
!= null && _textEditor.
TextView
.RenderScope != null)
630
Window window = Window.GetWindow(_textEditor.
TextView
.RenderScope);
670
return _textEditor.
TextView
;
770
if (!This._IsEnabled || This.
TextView
== null || This.
TextView
.RenderScope == null)
792
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
818
if (!This._IsEnabled || This.
TextView
== null || This.
TextView
.RenderScope == null)
839
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
874
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
899
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
System\windows\Documents\TextEditorMouse.cs (36)
65
ITextPointer cursorPosition = This.
TextView
.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true);
131
interactiveArea = textEditor.
TextView
.IsValid;
135
transform = textEditor.UiScope.TransformToDescendant(textEditor.
TextView
.RenderScope);
137
position = textEditor.
TextView
.GetTextPositionFromPoint(point, true);
196
if (This.
TextView
== null)
206
if (!This.
TextView
.IsValid)
211
This.
TextView
.RenderScope.UpdateLayout();
212
if (This.
TextView
== null || !This.
TextView
.IsValid)
225
This.
TextView
.ThrottleBackgroundTasksForUserInput();
228
Point mouseDownPoint = e.GetPosition(This.
TextView
.RenderScope);
231
if (TextEditor.IsTableEditingEnabled && TextRangeEditTables.TableBorderHitTest(This.
TextView
, mouseDownPoint))
234
This._tableColResizeInfo = TextRangeEditTables.StartColumnResize(This.
TextView
, mouseDownPoint);
281
if (This.
TextView
== null || !This.
TextView
.IsValid)
323
if (This.
TextView
== null || !This.
TextView
.IsValid)
339
Point mousePoint = e.GetPosition(This.
TextView
.RenderScope);
388
if (This.
TextView
== null)
430
TextEditorMouse.UpdateCursor(This, e.GetPosition(This.
TextView
.RenderScope));
447
Point mouseMovePoint = e.GetPosition(This.
TextView
.RenderScope);
469
This.
TextView
.ThrottleBackgroundTasksForUserInput();
484
ITextPointer snappedCursorPosition = This.
TextView
.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/true);
522
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(snappedCursorPosition);
524
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
528
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(snappedCursorPosition);
530
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
540
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
545
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
670
Invariant.Assert(This.
TextView
!= null && This.
TextView
.IsValid);
676
if (TextEditor.IsTableEditingEnabled && TextRangeEditTables.TableBorderHitTest(This.
TextView
, mouseMovePoint))
713
ITextPointer mouseMovePosition = This.
TextView
.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/false);
738
Rect uiElementFirstEdgeRect = This.
TextView
.GetRectangleFromTextPosition(mouseMovePosition);
739
Rect uiElementSecondEdgeRect = This.
TextView
.GetRectangleFromTextPosition(otherEdgePosition);
758
UIElement renderScope = textEditor.
TextView
.RenderScope;
System\windows\Documents\TextEditorSelection.cs (71)
290
ITextPointer newMovingPosition = This.
TextView
.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved);
317
else if (IsPaginated(This.
TextView
))
320
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleMoveByLineCompleted);
321
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, +1, This);
379
ITextPointer newMovingPosition = This.
TextView
.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved);
407
else if (IsPaginated(This.
TextView
))
410
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleMoveByLineCompleted);
411
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, -1, This);
585
if (IsPaginated(This.
TextView
))
593
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved);
605
else if (IsPaginated(This.
TextView
))
608
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleMoveByPageCompleted);
609
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, +1, This);
616
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
617
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Top + pageHeight);
618
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
634
ScrollBar.PageDownCommand.Execute(null, This.
TextView
.RenderScope);
638
This.
TextView
.RenderScope.UpdateLayout();
699
if (IsPaginated(This.
TextView
))
707
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved);
719
else if (IsPaginated(This.
TextView
))
722
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleMoveByPageCompleted);
723
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, -1, This);
730
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
731
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Bottom - pageHeight);
732
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
748
ScrollBar.PageUpCommand.Execute(null, This.
TextView
.RenderScope);
752
This.
TextView
.RenderScope.UpdateLayout();
791
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, startPositionInner);
842
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, endPositionInner);
1047
newMovingPosition = This.
TextView
.GetPositionAtNextLine(newMovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved);
1075
else if (IsPaginated(This.
TextView
))
1078
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleSelectByLineCompleted);
1079
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, +1, This);
1125
double newPositionX = GetAbsoluteXOffset(This.
TextView
, newMovingPosition);
1219
newMovingPosition = This.
TextView
.GetPositionAtNextLine(newMovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved);
1265
else if (IsPaginated(This.
TextView
))
1268
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleSelectByLineCompleted);
1269
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, -1, This);
1410
if (IsPaginated(This.
TextView
))
1418
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved);
1428
else if (IsPaginated(This.
TextView
))
1431
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleSelectByPageCompleted);
1432
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, +1, This);
1444
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
1445
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Top + pageHeight);
1446
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
1464
ScrollBar.PageDownCommand.Execute(null, This.
TextView
.RenderScope);
1506
if (IsPaginated(This.
TextView
))
1514
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved);
1524
else if (IsPaginated(This.
TextView
))
1527
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleSelectByPageCompleted);
1528
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, -1, This);
1540
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
1541
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Bottom - pageHeight);
1542
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
1560
ScrollBar.PageUpCommand.Execute(null, This.
TextView
.RenderScope);
1594
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, movingPositionInner);
1639
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, movingPositionInner);
1662
TextSegment anchorLineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, This.Selection.AnchorPosition);
2234
This._suggestedX = GetAbsoluteXOffset(This.
TextView
, innerMovingPosition);
2272
suggestedY = This.
TextView
.GetRectangleFromTextPosition(position).Y;
2381
textEditor.
TextView
!= null && textEditor.
TextView
.IsValid && !textEditor.
TextView
.Contains(position) && IsPaginated(textEditor.
TextView
))
2384
textEditor.
TextView
.BringPositionIntoViewAsync(position, textEditor);
System\windows\Documents\TextEditorTyping.cs (10)
150
This.
TextView
?.ThrottleBackgroundTasksForUserInput();
304
if (This.
TextView
!= null && !This.UiScope.IsMouseCaptured)
376
This.
TextView
?.ThrottleBackgroundTasksForUserInput();
641
if (This.
TextView
!= null &&
647
backspacePosition = This.
TextView
.GetBackspaceCaretUnitPosition(position);
1277
This.
TextView
?.ThrottleBackgroundTasksForUserInput();
1874
if (This.UiScope is RichTextBox && This.
TextView
!= null && This.
TextView
.IsValid)
1876
TextPointer pointer = (TextPointer)This.
TextView
.GetTextPositionFromPoint(Mouse.GetPosition(This.
TextView
.RenderScope), false);
System\windows\Documents\TextSelection.cs (5)
1585
if (_textEditor.
TextView
!= null && _textEditor.
TextView
.IsValid)
2090
if (_textEditor.
TextView
== null || !_textEditor.
TextView
.IsValid)
2618
return _textEditor.
TextView
;
System\Windows\Documents\TextStore.cs (3)
2074
if (this.TextEditor.
TextView
== null)
2077
return this.TextEditor.
TextView
.RenderScope;
2093
get { return TextEditor.
TextView
; }