7 writes to TextView
PresentationFramework (7)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1005
_textEditor.
TextView
= textView;
src\Framework\System\Windows\Controls\PasswordBox.cs (2)
1058
_textEditor.
TextView
= textview;
1071
_textEditor.
TextView
= null;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1056
_textEditor.
TextView
= _textView;
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1925
_textEditor.
TextView
= textView; // REVIEW:benwest: this is redundant! TextEditor already has a ref to TextContainer!
1940
_textEditor.
TextView
= null;
src\Framework\System\windows\Documents\TextEditor.cs (1)
219
this.
TextView
= null;
192 references to TextView
PresentationFramework (192)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
945
return TextEditor.
TextView
;
src\Framework\MS\Internal\Documents\TextBoxLine.cs (1)
462
if ((textEditor?.
TextView
?.RendersOwnSelection == true)
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (2)
1592
findResult = DocumentViewerHelper.Find(findToolBar, textEditor, textEditor.
TextView
, textEditor.
TextView
);
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1558
findResult = DocumentViewerHelper.Find(findToolBar, _textEditor, _textEditor.
TextView
, _textEditor.
TextView
);
src\Framework\System\windows\Documents\CaretElement.cs (9)
53
internal CaretElement(TextEditor textEditor, bool isBlinkEnabled) : base(textEditor.
TextView
.RenderScope)
55
Invariant.Assert(textEditor.
TextView
!= null && textEditor.
TextView
.RenderScope != null, "Assert: textView != null && RenderScope != null");
377
MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.
TextView
, new Rect(scrollToOriginPosition, scrollRectangle.Y, scrollRectangle.Width, scrollRectangle.Height));
385
MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.
TextView
, scrollRectangle);
399
GeneralTransform transform = _textEditor.
TextView
.RenderScope.TransformToAncestor(scroller);
448
if (!_textEditor.Selection.MovingPosition.HasValidLayout && _textEditor.
TextView
!= null && _textEditor.
TextView
.IsValid)
866
AdornerLayer layer = AdornerLayer.GetAdornerLayer(_textEditor.
TextView
.RenderScope);
src\Framework\System\Windows\Documents\ImmComposition.cs (6)
854
view = _editor.
TextView
;
1325
_compositionAdorner = new CompositionAdorner(_editor.
TextView
);
1326
_compositionAdorner.Initialize(_editor.
TextView
);
1394
_editor.
TextView
.RenderScope.UpdateLayout();
2060
get { return _editor.
TextView
== null ? null : _editor.
TextView
.RenderScope; }
src\Framework\System\windows\Documents\TextEditor.cs (9)
1366
FrameworkElement scroller = this.
TextView
== null ? null : (this.
TextView
.RenderScope as FrameworkElement);
1505
this.
TextView
!= null && this.
TextView
.IsValid && TextEditorSelection.IsPaginated(this.
TextView
))
1508
this.
TextView
.BringPointIntoViewCompleted += new BringPointIntoViewCompletedEventHandler(HandleBringPointIntoViewCompleted);
1509
this.
TextView
.BringPointIntoViewAsync(_mouseSelectionState.Point, this);
1536
Invariant.Assert(e.UserState == this && this.
TextView
== sender);
1649
if (this.
TextView
== null)
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (3)
60
if (This == null || This.
TextView
== null)
67
Point renderScopeMouseDownPoint = Mouse.GetPosition(This.
TextView
.RenderScope);
286
FrameworkElement element = This.
TextView
.RenderScope as FrameworkElement;
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (31)
146
Point mouseDownPoint = e.GetPosition(_textEditor.
TextView
.RenderScope);
370
if (!_textEditor.
TextView
.Validate(e.GetPosition(_textEditor.
TextView
.RenderScope)))
430
_textEditor.
TextView
.RenderScope.UpdateLayout(); // REVIEW:benwest:6/27/2006: This should use TextView.Validate, and check the return value instead of using IsValid below.
432
if (_textEditor.
TextView
.IsValid)
434
ITextPointer dragPosition = GetDropPosition(_textEditor.
TextView
.RenderScope as Visual, e.GetPosition(_textEditor.
TextView
.RenderScope));
468
Invariant.Assert(_textEditor.
TextView
.IsValid); // caller must guarantee this.
471
if (target != _textEditor.
TextView
.RenderScope && target != null && (_textEditor.
TextView
.RenderScope).IsAncestorOf(target))
473
GeneralTransform transform = target.TransformToAncestor(_textEditor.
TextView
.RenderScope);
557
if (!_textEditor.
TextView
.Validate(e.GetPosition(_textEditor.
TextView
.RenderScope)))
564
ITextPointer dropPosition = GetDropPosition(_textEditor.
TextView
.RenderScope as Visual, e.GetPosition(_textEditor.
TextView
.RenderScope));
657
if (!_textEditor.IsReadOnly && _textEditor.
TextView
!= null && _textEditor.
TextView
.RenderScope != null)
659
Window window = Window.GetWindow(_textEditor.
TextView
.RenderScope);
715
return _textEditor.
TextView
;
815
if (!This._IsEnabled || This.
TextView
== null || This.
TextView
.RenderScope == null)
837
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
863
if (!This._IsEnabled || This.
TextView
== null || This.
TextView
.RenderScope == null)
884
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
919
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
945
if (!This.
TextView
.Validate(e.GetPosition(This.
TextView
.RenderScope)))
src\Framework\System\windows\Documents\TextEditorMouse.cs (36)
81
ITextPointer cursorPosition = This.
TextView
.GetTextPositionFromPoint(mouseDownPoint, /*snapToText:*/true);
147
interactiveArea = textEditor.
TextView
.IsValid;
151
transform = textEditor.UiScope.TransformToDescendant(textEditor.
TextView
.RenderScope);
156
position = textEditor.
TextView
.GetTextPositionFromPoint(point, true);
215
if (This.
TextView
== null)
225
if (!This.
TextView
.IsValid)
230
This.
TextView
.RenderScope.UpdateLayout();
231
if (This.
TextView
== null || !This.
TextView
.IsValid)
244
This.
TextView
.ThrottleBackgroundTasksForUserInput();
247
Point mouseDownPoint = e.GetPosition(This.
TextView
.RenderScope);
250
if (TextEditor.IsTableEditingEnabled && TextRangeEditTables.TableBorderHitTest(This.
TextView
, mouseDownPoint))
253
This._tableColResizeInfo = TextRangeEditTables.StartColumnResize(This.
TextView
, mouseDownPoint);
300
if (This.
TextView
== null || !This.
TextView
.IsValid)
342
if (This.
TextView
== null || !This.
TextView
.IsValid)
358
Point mousePoint = e.GetPosition(This.
TextView
.RenderScope);
407
if (This.
TextView
== null)
449
TextEditorMouse.UpdateCursor(This, e.GetPosition(This.
TextView
.RenderScope));
466
Point mouseMovePoint = e.GetPosition(This.
TextView
.RenderScope);
488
This.
TextView
.ThrottleBackgroundTasksForUserInput();
503
ITextPointer snappedCursorPosition = This.
TextView
.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/true);
541
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(snappedCursorPosition);
543
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
547
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(snappedCursorPosition);
549
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
559
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
564
acceleratedCursorPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
688
Invariant.Assert(This.
TextView
!= null && This.
TextView
.IsValid);
694
if (TextEditor.IsTableEditingEnabled && TextRangeEditTables.TableBorderHitTest(This.
TextView
, mouseMovePoint))
731
ITextPointer mouseMovePosition = This.
TextView
.GetTextPositionFromPoint(mouseMovePoint, /*snapToText:*/false);
756
Rect uiElementFirstEdgeRect = This.
TextView
.GetRectangleFromTextPosition(mouseMovePosition);
757
Rect uiElementSecondEdgeRect = This.
TextView
.GetRectangleFromTextPosition(otherEdgePosition);
776
UIElement renderScope = textEditor.
TextView
.RenderScope;
src\Framework\System\windows\Documents\TextEditorSelection.cs (71)
313
ITextPointer newMovingPosition = This.
TextView
.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved);
340
else if (IsPaginated(This.
TextView
))
343
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleMoveByLineCompleted);
344
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, +1, This);
402
ITextPointer newMovingPosition = This.
TextView
.GetPositionAtNextLine(This.Selection.MovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved);
430
else if (IsPaginated(This.
TextView
))
433
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleMoveByLineCompleted);
434
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, -1, This);
609
if (IsPaginated(This.
TextView
))
617
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved);
629
else if (IsPaginated(This.
TextView
))
632
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleMoveByPageCompleted);
633
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, +1, This);
640
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
641
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Top + pageHeight);
642
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
658
ScrollBar.PageDownCommand.Execute(null, This.
TextView
.RenderScope);
662
This.
TextView
.RenderScope.UpdateLayout();
723
if (IsPaginated(This.
TextView
))
731
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved);
743
else if (IsPaginated(This.
TextView
))
746
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleMoveByPageCompleted);
747
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, -1, This);
754
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
755
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Bottom - pageHeight);
756
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
772
ScrollBar.PageUpCommand.Execute(null, This.
TextView
.RenderScope);
776
This.
TextView
.RenderScope.UpdateLayout();
815
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, startPositionInner);
866
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, endPositionInner);
1071
newMovingPosition = This.
TextView
.GetPositionAtNextLine(newMovingPosition, suggestedX, +1, out newSuggestedX, out linesMoved);
1099
else if (IsPaginated(This.
TextView
))
1102
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleSelectByLineCompleted);
1103
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, +1, This);
1149
double newPositionX = GetAbsoluteXOffset(This.
TextView
, newMovingPosition);
1243
newMovingPosition = This.
TextView
.GetPositionAtNextLine(newMovingPosition, suggestedX, -1, out newSuggestedX, out linesMoved);
1289
else if (IsPaginated(This.
TextView
))
1292
This.
TextView
.BringLineIntoViewCompleted += new BringLineIntoViewCompletedEventHandler(HandleSelectByLineCompleted);
1293
This.
TextView
.BringLineIntoViewAsync(newMovingPosition, newSuggestedX, -1, This);
1434
if (IsPaginated(This.
TextView
))
1442
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved);
1452
else if (IsPaginated(This.
TextView
))
1455
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleSelectByPageCompleted);
1456
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, +1, This);
1468
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
1469
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Top + pageHeight);
1470
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
1488
ScrollBar.PageDownCommand.Execute(null, This.
TextView
.RenderScope);
1530
if (IsPaginated(This.
TextView
))
1538
targetPosition = This.
TextView
.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.
TextView
, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved);
1548
else if (IsPaginated(This.
TextView
))
1551
This.
TextView
.BringPageIntoViewCompleted += new BringPageIntoViewCompletedEventHandler(HandleSelectByPageCompleted);
1552
This.
TextView
.BringPageIntoViewAsync(targetPosition, newSuggestedOffset, -1, This);
1564
Rect targetRect = This.
TextView
.GetRectangleFromTextPosition(movingPosition);
1565
Point targetPoint = new Point(GetViewportXOffset(This.
TextView
, suggestedX), targetRect.Bottom - pageHeight);
1566
targetPosition = This.
TextView
.GetTextPositionFromPoint(targetPoint, /*snapToText:*/true);
1584
ScrollBar.PageUpCommand.Execute(null, This.
TextView
.RenderScope);
1618
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, movingPositionInner);
1663
TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, movingPositionInner);
1686
TextSegment anchorLineRange = TextEditorSelection.GetNormalizedLineRange(This.
TextView
, This.Selection.AnchorPosition);
2258
This._suggestedX = GetAbsoluteXOffset(This.
TextView
, innerMovingPosition);
2296
suggestedY = This.
TextView
.GetRectangleFromTextPosition(position).Y;
2405
textEditor.
TextView
!= null && textEditor.
TextView
.IsValid && !textEditor.
TextView
.Contains(position) && IsPaginated(textEditor.
TextView
))
2408
textEditor.
TextView
.BringPositionIntoViewAsync(position, textEditor);
src\Framework\System\windows\Documents\TextEditorTyping.cs (13)
163
if (This.
TextView
!= null)
165
This.
TextView
.ThrottleBackgroundTasksForUserInput();
320
if (This.
TextView
!= null && !This.UiScope.IsMouseCaptured)
393
if (This.
TextView
!= null)
395
This.
TextView
.ThrottleBackgroundTasksForUserInput();
675
if (This.
TextView
!= null &&
681
backspacePosition = This.
TextView
.GetBackspaceCaretUnitPosition(position);
1312
if (This.
TextView
!= null)
1314
This.
TextView
.ThrottleBackgroundTasksForUserInput();
1925
if (This.UiScope is RichTextBox && This.
TextView
!= null && This.
TextView
.IsValid)
1927
TextPointer pointer = (TextPointer)This.
TextView
.GetTextPositionFromPoint(Mouse.GetPosition(This.
TextView
.RenderScope), false);
src\Framework\System\windows\Documents\TextSelection.cs (5)
1606
if (_textEditor.
TextView
!= null && _textEditor.
TextView
.IsValid)
2116
if (_textEditor.
TextView
== null || !_textEditor.
TextView
.IsValid)
2647
return _textEditor.
TextView
;
src\Framework\System\Windows\Documents\TextStore.cs (3)
1960
if (this.TextEditor.
TextView
== null)
1963
return this.TextEditor.
TextView
.RenderScope;
1979
get { return TextEditor.
TextView
; }