7 writes to TextView
PresentationFramework (7)
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
990
TextView
= textView
System\Windows\Controls\PasswordBox.cs (2)
1021
_textEditor.
TextView
= textview;
1034
_textEditor.
TextView
= null;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1019
TextView
= _textView
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1817
_textEditor.
TextView
= textView; // REVIEW:benwest: this is redundant! TextEditor already has a ref to TextContainer!
1832
_textEditor.
TextView
= null;
System\windows\Documents\TextEditor.cs (1)
197
this.
TextView
= null;
188 references to TextView
PresentationFramework (188)
MS\Internal\Documents\DocumentGrid.cs (1)
917
return TextEditor.
TextView
;
MS\Internal\Documents\TextBoxLine.cs (1)
452
if ((textEditor?.
TextView
?.RendersOwnSelection == true)
System\Windows\Controls\FlowDocumentReader.cs (2)
1557
findResult = DocumentViewerHelper.Find(findToolBar, textEditor, textEditor.
TextView
, textEditor.
TextView
);
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1513
findResult = DocumentViewerHelper.Find(findToolBar, _textEditor, _textEditor.
TextView
, _textEditor.
TextView
);
System\windows\Documents\CaretElement.cs (9)
43
internal CaretElement(TextEditor textEditor, bool isBlinkEnabled) : base(textEditor.
TextView
.RenderScope)
45
Invariant.Assert(textEditor.
TextView
!= null && textEditor.
TextView
.RenderScope != null, "Assert: textView != null && RenderScope != null");
369
MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.
TextView
, new Rect(scrollToOriginPosition, scrollRectangle.Y, scrollRectangle.Width, scrollRectangle.Height));
377
MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.
TextView
, scrollRectangle);
391
GeneralTransform transform = _textEditor.
TextView
.RenderScope.TransformToAncestor(scroller);
439
if (!_textEditor.Selection.MovingPosition.HasValidLayout && _textEditor.
TextView
!= null && _textEditor.
TextView
.IsValid)
859
AdornerLayer layer = AdornerLayer.GetAdornerLayer(_textEditor.
TextView
.RenderScope);
System\Windows\Documents\ImmComposition.cs (5)
719
view = _editor.
TextView
;
1171
_compositionAdorner = new CompositionAdorner(_editor.
TextView
);
1172
_compositionAdorner.Initialize(_editor.
TextView
);
1240
_editor.
TextView
.RenderScope.UpdateLayout();
1848
get { return _editor.
TextView
?.RenderScope; }
System\windows\Documents\TextEditor.cs (9)
1320
FrameworkElement scroller = this.
TextView
== null ? null : (this.
TextView
.RenderScope as FrameworkElement);
1458
this.
TextView
!= null && this.
TextView
.IsValid && TextEditorSelection.IsPaginated(this.
TextView
))
1461
this.
TextView
.BringPointIntoViewCompleted += new BringPointIntoViewCompletedEventHandler(HandleBringPointIntoViewCompleted);
1462
this.
TextView
.BringPointIntoViewAsync(_mouseSelectionState.Point, this);
1489
Invariant.Assert(e.UserState == this && this.
TextView
== sender);
1597
if (this.
TextView
== null)
System\windows\Documents\TextEditorContextMenu.cs (3)
48
if (This == null || This.
TextView
== null)
55
Point renderScopeMouseDownPoint = Mouse.GetPosition(This.
TextView
.RenderScope);
269
FrameworkElement element = This.
TextView
.RenderScope as FrameworkElement;
System\windows\Documents\TextEditorDragDrop.cs (31)
125
Point mouseDownPoint = e.GetPosition(_textEditor.
TextView
.RenderScope);
340
if (!_textEditor.
TextView
.Validate(e.GetPosition(_textEditor.
TextView
.RenderScope)))
400
_textEditor.
TextView
.RenderScope.UpdateLayout(); // REVIEW:benwest:6/27/2006: This should use TextView.Validate, and check the return value instead of using IsValid below.
402
if (_textEditor.
TextView
.IsValid)
404
ITextPointer dragPosition = GetDropPosition(_textEditor.
TextView
.RenderScope as Visual, e.GetPosition(_textEditor.
TextView
.RenderScope));
438
Invariant.Assert(_textEditor.
TextView
.IsValid); // caller must guarantee this.
441
if (target != _textEditor.
TextView
.RenderScope && target != null && (_textEditor.
TextView
.RenderScope).IsAncestorOf(target))
443
GeneralTransform transform = target.TransformToAncestor(_textEditor.
TextView
.RenderScope);
527
if (!_textEditor.
TextView
.Validate(e.GetPosition(_textEditor.
TextView
.RenderScope)))
534
ITextPointer dropPosition = GetDropPosition(_textEditor.
TextView
.RenderScope as Visual, e.GetPosition(_textEditor.
TextView
.RenderScope));
627
if (!_textEditor.IsReadOnly && _textEditor.
TextView
!= null && _textEditor.
TextView
.RenderScope != null)
629
Window window = Window.GetWindow(_textEditor.
TextView
.RenderScope);
669
return _textEditor.
TextView
;
769
if (!This._IsEnabled || This.
TextView
== null || This.
TextView
.RenderScope == null)
791
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
817
if (!This._IsEnabled || This.
TextView
== null || This.
TextView
.RenderScope == null)
838
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
873
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
898
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
System\windows\Documents\TextEditorMouse.cs (36)
64
ITextPointer cursorPosition = This.
TextView
.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true);
130
interactiveArea = textEditor.
TextView
.IsValid;
134
transform = textEditor.UiScope.TransformToDescendant(textEditor.
TextView
.RenderScope);
136
position = textEditor.
TextView
.GetTextPositionFromPoint(point, true);
195
if (This.
TextView
== null)
205
if (!This.
TextView
.IsValid)
210
This.
TextView
.RenderScope.UpdateLayout();
211
if (This.
TextView
== null || !This.
TextView
.IsValid)
224
This.
TextView
.ThrottleBackgroundTasksForUserInput();
227
Point mouseDownPoint = e.GetPosition(This.
TextView
.RenderScope);
230
if (TextEditor.IsTableEditingEnabled && TextRangeEditTables.TableBorderHitTest(This.
TextView
, mouseDownPoint))
233
This._tableColResizeInfo = TextRangeEditTables.StartColumnResize(This.
TextView
, mouseDownPoint);
280
if (This.
TextView
== null || !This.
TextView
.IsValid)
322
if (This.
TextView
== null || !This.
TextView
.IsValid)
338
Point mousePoint = e.GetPosition(This.
TextView
.RenderScope);
387
if (This.
TextView
== null)
429
TextEditorMouse.UpdateCursor(This, e.GetPosition(This.
TextView
.RenderScope));
446
Point mouseMovePoint = e.GetPosition(This.
TextView
.RenderScope);
468
This.
TextView
.ThrottleBackgroundTasksForUserInput();
483
ITextPointer snappedCursorPosition = This.
TextView
.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/true);
521
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(snappedCursorPosition);
523
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
527
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(snappedCursorPosition);
529
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
539
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
544
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
669
Invariant.Assert(This.
TextView
!= null && This.
TextView
.IsValid);
675
if (TextEditor.IsTableEditingEnabled && TextRangeEditTables.TableBorderHitTest(This.
TextView
, mouseMovePoint))
712
ITextPointer mouseMovePosition = This.
TextView
.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/false);
737
Rect uiElementFirstEdgeRect = This.
TextView
.GetRectangleFromTextPosition(mouseMovePosition);
738
Rect uiElementSecondEdgeRect = This.
TextView
.GetRectangleFromTextPosition(otherEdgePosition);
757
UIElement renderScope = textEditor.
TextView
.RenderScope;
System\windows\Documents\TextEditorSelection.cs (71)
289
ITextPointer newMovingPosition = This.
TextView
.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved);
316
else if (IsPaginated(This.
TextView
))
319
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleMoveByLineCompleted);
320
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, +1, This);
378
ITextPointer newMovingPosition = This.
TextView
.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved);
406
else if (IsPaginated(This.
TextView
))
409
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleMoveByLineCompleted);
410
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, -1, This);
584
if (IsPaginated(This.
TextView
))
592
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved);
604
else if (IsPaginated(This.
TextView
))
607
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleMoveByPageCompleted);
608
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, +1, This);
615
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
616
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Top + pageHeight);
617
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
633
ScrollBar.PageDownCommand.Execute(null, This.
TextView
.RenderScope);
637
This.
TextView
.RenderScope.UpdateLayout();
698
if (IsPaginated(This.
TextView
))
706
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved);
718
else if (IsPaginated(This.
TextView
))
721
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleMoveByPageCompleted);
722
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, -1, This);
729
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
730
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Bottom - pageHeight);
731
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
747
ScrollBar.PageUpCommand.Execute(null, This.
TextView
.RenderScope);
751
This.
TextView
.RenderScope.UpdateLayout();
790
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, startPositionInner);
841
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, endPositionInner);
1046
newMovingPosition = This.
TextView
.GetPositionAtNextLine(newMovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved);
1074
else if (IsPaginated(This.
TextView
))
1077
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleSelectByLineCompleted);
1078
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, +1, This);
1124
double newPositionX = GetAbsoluteXOffset(This.
TextView
, newMovingPosition);
1218
newMovingPosition = This.
TextView
.GetPositionAtNextLine(newMovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved);
1264
else if (IsPaginated(This.
TextView
))
1267
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleSelectByLineCompleted);
1268
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, -1, This);
1409
if (IsPaginated(This.
TextView
))
1417
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved);
1427
else if (IsPaginated(This.
TextView
))
1430
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleSelectByPageCompleted);
1431
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, +1, This);
1443
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
1444
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Top + pageHeight);
1445
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
1463
ScrollBar.PageDownCommand.Execute(null, This.
TextView
.RenderScope);
1505
if (IsPaginated(This.
TextView
))
1513
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved);
1523
else if (IsPaginated(This.
TextView
))
1526
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleSelectByPageCompleted);
1527
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, -1, This);
1539
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
1540
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Bottom - pageHeight);
1541
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
1559
ScrollBar.PageUpCommand.Execute(null, This.
TextView
.RenderScope);
1593
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, movingPositionInner);
1638
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, movingPositionInner);
1661
TextSegment anchorLineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, This.Selection.AnchorPosition);
2233
This._suggestedX = GetAbsoluteXOffset(This.
TextView
, innerMovingPosition);
2271
suggestedY = This.
TextView
.GetRectangleFromTextPosition(position).Y;
2380
textEditor.
TextView
!= null && textEditor.
TextView
.IsValid && !textEditor.
TextView
.Contains(position) && IsPaginated(textEditor.
TextView
))
2383
textEditor.
TextView
.BringPositionIntoViewAsync(position, textEditor);
System\windows\Documents\TextEditorTyping.cs (10)
149
This.
TextView
?.ThrottleBackgroundTasksForUserInput();
303
if (This.
TextView
!= null && !This.UiScope.IsMouseCaptured)
375
This.
TextView
?.ThrottleBackgroundTasksForUserInput();
640
if (This.
TextView
!= null &&
646
backspacePosition = This.
TextView
.GetBackspaceCaretUnitPosition(position);
1276
This.
TextView
?.ThrottleBackgroundTasksForUserInput();
1873
if (This.UiScope is RichTextBox && This.
TextView
!= null && This.
TextView
.IsValid)
1875
TextPointer pointer = (TextPointer)This.
TextView
.GetTextPositionFromPoint(Mouse.GetPosition(This.
TextView
.RenderScope), false);
System\windows\Documents\TextSelection.cs (5)
1584
if (_textEditor.
TextView
!= null && _textEditor.
TextView
.IsValid)
2089
if (_textEditor.
TextView
== null || !_textEditor.
TextView
.IsValid)
2617
return _textEditor.
TextView
;
System\Windows\Documents\TextStore.cs (3)
2073
if (this.TextEditor.
TextView
== null)
2076
return this.TextEditor.
TextView
.RenderScope;
2092
get { return TextEditor.
TextView
; }