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