7 writes to TextView
PresentationFramework (7)
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
997
_textEditor.
TextView
= textView;
System\Windows\Controls\PasswordBox.cs (2)
1042
_textEditor.
TextView
= textview;
1055
_textEditor.
TextView
= null;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1044
_textEditor.
TextView
= _textView;
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1894
_textEditor.
TextView
= textView; // REVIEW:benwest: this is redundant! TextEditor already has a ref to TextContainer!
1909
_textEditor.
TextView
= null;
System\windows\Documents\TextEditor.cs (1)
209
this.
TextView
= null;
192 references to TextView
PresentationFramework (192)
MS\Internal\Documents\DocumentGrid.cs (1)
925
return TextEditor.
TextView
;
MS\Internal\Documents\TextBoxLine.cs (1)
460
if ((textEditor?.
TextView
?.RendersOwnSelection == true)
System\Windows\Controls\FlowDocumentReader.cs (2)
1586
findResult = DocumentViewerHelper.Find(findToolBar, textEditor, textEditor.
TextView
, textEditor.
TextView
);
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1550
findResult = DocumentViewerHelper.Find(findToolBar, _textEditor, _textEditor.
TextView
, _textEditor.
TextView
);
System\windows\Documents\CaretElement.cs (9)
50
internal CaretElement(TextEditor textEditor, bool isBlinkEnabled) : base(textEditor.
TextView
.RenderScope)
52
Invariant.Assert(textEditor.
TextView
!= null && textEditor.
TextView
.RenderScope != null, "Assert: textView != null && RenderScope != null");
374
MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.
TextView
, new Rect(scrollToOriginPosition, scrollRectangle.Y, scrollRectangle.Width, scrollRectangle.Height));
382
MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.
TextView
, scrollRectangle);
396
GeneralTransform transform = _textEditor.
TextView
.RenderScope.TransformToAncestor(scroller);
444
if (!_textEditor.Selection.MovingPosition.HasValidLayout && _textEditor.
TextView
!= null && _textEditor.
TextView
.IsValid)
862
AdornerLayer layer = AdornerLayer.GetAdornerLayer(_textEditor.
TextView
.RenderScope);
System\Windows\Documents\ImmComposition.cs (6)
743
view = _editor.
TextView
;
1193
_compositionAdorner = new CompositionAdorner(_editor.
TextView
);
1194
_compositionAdorner.Initialize(_editor.
TextView
);
1262
_editor.
TextView
.RenderScope.UpdateLayout();
1870
get { return _editor.
TextView
== null ? null : _editor.
TextView
.RenderScope; }
System\windows\Documents\TextEditor.cs (9)
1339
FrameworkElement scroller = this.
TextView
== null ? null : (this.
TextView
.RenderScope as FrameworkElement);
1477
this.
TextView
!= null && this.
TextView
.IsValid && TextEditorSelection.IsPaginated(this.
TextView
))
1480
this.
TextView
.BringPointIntoViewCompleted += new BringPointIntoViewCompletedEventHandler(HandleBringPointIntoViewCompleted);
1481
this.
TextView
.BringPointIntoViewAsync(_mouseSelectionState.Point, this);
1508
Invariant.Assert(e.UserState == this && this.
TextView
== sender);
1616
if (this.
TextView
== null)
System\windows\Documents\TextEditorContextMenu.cs (3)
51
if (This == null || This.
TextView
== null)
58
Point renderScopeMouseDownPoint = Mouse.GetPosition(This.
TextView
.RenderScope);
272
FrameworkElement element = This.
TextView
.RenderScope as FrameworkElement;
System\windows\Documents\TextEditorDragDrop.cs (31)
143
Point mouseDownPoint = e.GetPosition(_textEditor.
TextView
.RenderScope);
358
if (!_textEditor.
TextView
.Validate(e.GetPosition(_textEditor.
TextView
.RenderScope)))
418
_textEditor.
TextView
.RenderScope.UpdateLayout(); // REVIEW:benwest:6/27/2006: This should use TextView.Validate, and check the return value instead of using IsValid below.
420
if (_textEditor.
TextView
.IsValid)
422
ITextPointer dragPosition = GetDropPosition(_textEditor.
TextView
.RenderScope as Visual, e.GetPosition(_textEditor.
TextView
.RenderScope));
456
Invariant.Assert(_textEditor.
TextView
.IsValid); // caller must guarantee this.
459
if (target != _textEditor.
TextView
.RenderScope && target != null && (_textEditor.
TextView
.RenderScope).IsAncestorOf(target))
461
GeneralTransform transform = target.TransformToAncestor(_textEditor.
TextView
.RenderScope);
545
if (!_textEditor.
TextView
.Validate(e.GetPosition(_textEditor.
TextView
.RenderScope)))
552
ITextPointer dropPosition = GetDropPosition(_textEditor.
TextView
.RenderScope as Visual, e.GetPosition(_textEditor.
TextView
.RenderScope));
645
if (!_textEditor.IsReadOnly && _textEditor.
TextView
!= null && _textEditor.
TextView
.RenderScope != null)
647
Window window = Window.GetWindow(_textEditor.
TextView
.RenderScope);
687
return _textEditor.
TextView
;
787
if (!This._IsEnabled || This.
TextView
== null || This.
TextView
.RenderScope == null)
809
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
835
if (!This._IsEnabled || This.
TextView
== null || This.
TextView
.RenderScope == null)
856
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
891
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
916
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
System\windows\Documents\TextEditorMouse.cs (36)
79
ITextPointer cursorPosition = This.
TextView
.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true);
145
interactiveArea = textEditor.
TextView
.IsValid;
149
transform = textEditor.UiScope.TransformToDescendant(textEditor.
TextView
.RenderScope);
154
position = textEditor.
TextView
.GetTextPositionFromPoint(point, true);
213
if (This.
TextView
== null)
223
if (!This.
TextView
.IsValid)
228
This.
TextView
.RenderScope.UpdateLayout();
229
if (This.
TextView
== null || !This.
TextView
.IsValid)
242
This.
TextView
.ThrottleBackgroundTasksForUserInput();
245
Point mouseDownPoint = e.GetPosition(This.
TextView
.RenderScope);
248
if (TextEditor.IsTableEditingEnabled && TextRangeEditTables.TableBorderHitTest(This.
TextView
, mouseDownPoint))
251
This._tableColResizeInfo = TextRangeEditTables.StartColumnResize(This.
TextView
, mouseDownPoint);
298
if (This.
TextView
== null || !This.
TextView
.IsValid)
340
if (This.
TextView
== null || !This.
TextView
.IsValid)
356
Point mousePoint = e.GetPosition(This.
TextView
.RenderScope);
405
if (This.
TextView
== null)
447
TextEditorMouse.UpdateCursor(This, e.GetPosition(This.
TextView
.RenderScope));
464
Point mouseMovePoint = e.GetPosition(This.
TextView
.RenderScope);
486
This.
TextView
.ThrottleBackgroundTasksForUserInput();
501
ITextPointer snappedCursorPosition = This.
TextView
.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/true);
539
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(snappedCursorPosition);
541
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
545
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(snappedCursorPosition);
547
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
557
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
562
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
687
Invariant.Assert(This.
TextView
!= null && This.
TextView
.IsValid);
693
if (TextEditor.IsTableEditingEnabled && TextRangeEditTables.TableBorderHitTest(This.
TextView
, mouseMovePoint))
730
ITextPointer mouseMovePosition = This.
TextView
.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/false);
755
Rect uiElementFirstEdgeRect = This.
TextView
.GetRectangleFromTextPosition(mouseMovePosition);
756
Rect uiElementSecondEdgeRect = This.
TextView
.GetRectangleFromTextPosition(otherEdgePosition);
775
UIElement renderScope = textEditor.
TextView
.RenderScope;
System\windows\Documents\TextEditorSelection.cs (71)
305
ITextPointer newMovingPosition = This.
TextView
.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved);
332
else if (IsPaginated(This.
TextView
))
335
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleMoveByLineCompleted);
336
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, +1, This);
394
ITextPointer newMovingPosition = This.
TextView
.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved);
422
else if (IsPaginated(This.
TextView
))
425
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleMoveByLineCompleted);
426
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, -1, This);
600
if (IsPaginated(This.
TextView
))
608
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved);
620
else if (IsPaginated(This.
TextView
))
623
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleMoveByPageCompleted);
624
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, +1, This);
631
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
632
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Top + pageHeight);
633
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
649
ScrollBar.PageDownCommand.Execute(null, This.
TextView
.RenderScope);
653
This.
TextView
.RenderScope.UpdateLayout();
714
if (IsPaginated(This.
TextView
))
722
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved);
734
else if (IsPaginated(This.
TextView
))
737
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleMoveByPageCompleted);
738
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, -1, This);
745
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
746
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Bottom - pageHeight);
747
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
763
ScrollBar.PageUpCommand.Execute(null, This.
TextView
.RenderScope);
767
This.
TextView
.RenderScope.UpdateLayout();
806
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, startPositionInner);
857
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, endPositionInner);
1062
newMovingPosition = This.
TextView
.GetPositionAtNextLine(newMovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved);
1090
else if (IsPaginated(This.
TextView
))
1093
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleSelectByLineCompleted);
1094
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, +1, This);
1140
double newPositionX = GetAbsoluteXOffset(This.
TextView
, newMovingPosition);
1234
newMovingPosition = This.
TextView
.GetPositionAtNextLine(newMovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved);
1280
else if (IsPaginated(This.
TextView
))
1283
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleSelectByLineCompleted);
1284
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, -1, This);
1425
if (IsPaginated(This.
TextView
))
1433
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved);
1443
else if (IsPaginated(This.
TextView
))
1446
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleSelectByPageCompleted);
1447
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, +1, This);
1459
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
1460
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Top + pageHeight);
1461
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
1479
ScrollBar.PageDownCommand.Execute(null, This.
TextView
.RenderScope);
1521
if (IsPaginated(This.
TextView
))
1529
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved);
1539
else if (IsPaginated(This.
TextView
))
1542
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleSelectByPageCompleted);
1543
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, -1, This);
1555
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
1556
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Bottom - pageHeight);
1557
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
1575
ScrollBar.PageUpCommand.Execute(null, This.
TextView
.RenderScope);
1609
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, movingPositionInner);
1654
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, movingPositionInner);
1677
TextSegment anchorLineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, This.Selection.AnchorPosition);
2249
This._suggestedX = GetAbsoluteXOffset(This.
TextView
, innerMovingPosition);
2287
suggestedY = This.
TextView
.GetRectangleFromTextPosition(position).Y;
2396
textEditor.
TextView
!= null && textEditor.
TextView
.IsValid && !textEditor.
TextView
.Contains(position) && IsPaginated(textEditor.
TextView
))
2399
textEditor.
TextView
.BringPositionIntoViewAsync(position, textEditor);
System\windows\Documents\TextEditorTyping.cs (13)
159
if (This.
TextView
!= null)
161
This.
TextView
.ThrottleBackgroundTasksForUserInput();
316
if (This.
TextView
!= null && !This.UiScope.IsMouseCaptured)
388
if (This.
TextView
!= null)
390
This.
TextView
.ThrottleBackgroundTasksForUserInput();
659
if (This.
TextView
!= null &&
665
backspacePosition = This.
TextView
.GetBackspaceCaretUnitPosition(position);
1295
if (This.
TextView
!= null)
1297
This.
TextView
.ThrottleBackgroundTasksForUserInput();
1895
if (This.UiScope is RichTextBox && This.
TextView
!= null && This.
TextView
.IsValid)
1897
TextPointer pointer = (TextPointer)This.
TextView
.GetTextPositionFromPoint(Mouse.GetPosition(This.
TextView
.RenderScope), false);
System\windows\Documents\TextSelection.cs (5)
1603
if (_textEditor.
TextView
!= null && _textEditor.
TextView
.IsValid)
2108
if (_textEditor.
TextView
== null || !_textEditor.
TextView
.IsValid)
2634
return _textEditor.
TextView
;
System\Windows\Documents\TextStore.cs (3)
2091
if (this.TextEditor.
TextView
== null)
2094
return this.TextEditor.
TextView
.RenderScope;
2110
get { return TextEditor.
TextView
; }