7 writes to TextView
PresentationFramework (7)
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
997
TextView
= textView
System\Windows\Controls\PasswordBox.cs (2)
1025
_textEditor.
TextView
= textview;
1038
_textEditor.
TextView
= null;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1029
TextView
= _textView
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1887
_textEditor.
TextView
= textView; // REVIEW:benwest: this is redundant! TextEditor already has a ref to TextContainer!
1902
_textEditor.
TextView
= null;
System\windows\Documents\TextEditor.cs (1)
198
this.
TextView
= null;
192 references to TextView
PresentationFramework (192)
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)
1582
findResult = DocumentViewerHelper.Find(findToolBar, textEditor, textEditor.
TextView
, textEditor.
TextView
);
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1553
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 (6)
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
== null ? null : _editor.
TextView
.RenderScope; }
System\windows\Documents\TextEditor.cs (9)
1330
FrameworkElement scroller = this.
TextView
== null ? null : (this.
TextView
.RenderScope as FrameworkElement);
1468
this.
TextView
!= null && this.
TextView
.IsValid && TextEditorSelection.IsPaginated(this.
TextView
))
1471
this.
TextView
.BringPointIntoViewCompleted += new BringPointIntoViewCompletedEventHandler(HandleBringPointIntoViewCompleted);
1472
this.
TextView
.BringPointIntoViewAsync(_mouseSelectionState.Point, this);
1499
Invariant.Assert(e.UserState == this && this.
TextView
== sender);
1607
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);
140
position = textEditor.
TextView
.GetTextPositionFromPoint(point, true);
199
if (This.
TextView
== null)
209
if (!This.
TextView
.IsValid)
214
This.
TextView
.RenderScope.UpdateLayout();
215
if (This.
TextView
== null || !This.
TextView
.IsValid)
228
This.
TextView
.ThrottleBackgroundTasksForUserInput();
231
Point mouseDownPoint = e.GetPosition(This.
TextView
.RenderScope);
234
if (TextEditor.IsTableEditingEnabled && TextRangeEditTables.TableBorderHitTest(This.
TextView
, mouseDownPoint))
237
This._tableColResizeInfo = TextRangeEditTables.StartColumnResize(This.
TextView
, mouseDownPoint);
284
if (This.
TextView
== null || !This.
TextView
.IsValid)
326
if (This.
TextView
== null || !This.
TextView
.IsValid)
342
Point mousePoint = e.GetPosition(This.
TextView
.RenderScope);
391
if (This.
TextView
== null)
433
TextEditorMouse.UpdateCursor(This, e.GetPosition(This.
TextView
.RenderScope));
450
Point mouseMovePoint = e.GetPosition(This.
TextView
.RenderScope);
472
This.
TextView
.ThrottleBackgroundTasksForUserInput();
487
ITextPointer snappedCursorPosition = This.
TextView
.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/true);
525
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(snappedCursorPosition);
527
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
531
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(snappedCursorPosition);
533
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
543
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
548
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
673
Invariant.Assert(This.
TextView
!= null && This.
TextView
.IsValid);
679
if (TextEditor.IsTableEditingEnabled && TextRangeEditTables.TableBorderHitTest(This.
TextView
, mouseMovePoint))
716
ITextPointer mouseMovePosition = This.
TextView
.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/false);
741
Rect uiElementFirstEdgeRect = This.
TextView
.GetRectangleFromTextPosition(mouseMovePosition);
742
Rect uiElementSecondEdgeRect = This.
TextView
.GetRectangleFromTextPosition(otherEdgePosition);
761
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 (13)
150
if (This.
TextView
!= null)
152
This.
TextView
.ThrottleBackgroundTasksForUserInput();
307
if (This.
TextView
!= null && !This.UiScope.IsMouseCaptured)
379
if (This.
TextView
!= null)
381
This.
TextView
.ThrottleBackgroundTasksForUserInput();
650
if (This.
TextView
!= null &&
656
backspacePosition = This.
TextView
.GetBackspaceCaretUnitPosition(position);
1286
if (This.
TextView
!= null)
1288
This.
TextView
.ThrottleBackgroundTasksForUserInput();
1886
if (This.UiScope is RichTextBox && This.
TextView
!= null && This.
TextView
.IsValid)
1888
TextPointer pointer = (TextPointer)This.
TextView
.GetTextPositionFromPoint(Mouse.GetPosition(This.
TextView
.RenderScope), false);
System\windows\Documents\TextSelection.cs (5)
1600
if (_textEditor.
TextView
!= null && _textEditor.
TextView
.IsValid)
2105
if (_textEditor.
TextView
== null || !_textEditor.
TextView
.IsValid)
2633
return _textEditor.
TextView
;
System\Windows\Documents\TextStore.cs (3)
2080
if (this.TextEditor.
TextView
== null)
2083
return this.TextEditor.
TextView
.RenderScope;
2099
get { return TextEditor.
TextView
; }