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