2 implementations of ITextView
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
22internal class TextBoxView : FrameworkElement, ITextView, IScrollInfo, IServiceProvider
MS\Internal\Documents\TextViewBase.cs (1)
21internal abstract class TextViewBase : ITextView
268 references to ITextView
PresentationFramework (268)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (6)
288ITextView tv = (ITextView)((IServiceProvider)docPage).GetService(typeof(ITextView)); 588ITextView textView; 594textView = ((IServiceProvider)documentPage).GetService(typeof(ITextView)) as ITextView;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (24)
293ITextView textView = GetDocumentPageTextView(pointer); 383internal static ITextView GetDocumentPageTextView(ITextPointer pointer) 395return provider.GetService(typeof(ITextView)) as ITextView; 405return isp.GetService(typeof(ITextView)) as ITextView; 416internal static List<ITextView> GetDocumentPageTextViews(TextSegment segment) 418List<ITextView> res = null; 433res = new List<ITextView>(1); 434res.Add(provider.GetService(typeof(ITextView)) as ITextView); 447res = new List<ITextView>(0); 477private static List<ITextView> ProcessSinglePage(IDocumentPaginatorSource idp, int pageNumber) 483List<ITextView> res = null; 486res = new List<ITextView>(1); 487ITextView view = isp.GetService(typeof(ITextView)) as ITextView; 503private static List<ITextView> ProcessMultiplePages(IDocumentPaginatorSource idp, int startPageNumber, int endPageNumber) 520List<ITextView> res = null; 523res = new List<ITextView>(endPageNumber - startPageNumber + 1); 532ITextView textView = serviceProvider.GetService(typeof(ITextView)) as ITextView;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (3)
252ITextView textView = null; 265textView = serviceProvider.GetService(typeof(ITextView)) as ITextView;
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (6)
128ITextView textView = VerifySelection(selection); 220internal static TextRange GetTextViewTextRange(ITextView textView, out int startOffset, out int endOffset) 258private ITextView VerifySelection(object selection) 266ITextView textView = provider.GetService(typeof(ITextView)) as ITextView;
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (6)
915private void GetSegmentGeometry(GeometryGroup geometry, TextSegment segment, ITextView parentView) 917List<ITextView> textViews = TextSelectionHelper.GetDocumentPageTextViews(segment); 920foreach (ITextView view in textViews) 935private Geometry GetPageGeometry(TextSegment segment, ITextView view, ITextView parentView) 1099ITextView parentView = TextSelectionHelper.GetDocumentPageTextView(TopOwner.Range.Start.CreatePointer(LogicalDirection.Forward));
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (5)
418ITextView startView = TextSelectionHelper.GetDocumentPageTextView(baseAnchor); 419ITextView endView = TextSelectionHelper.GetDocumentPageTextView(anchor); 926ITextView textView = (ITextView)service.GetService(typeof(ITextView));
MS\Internal\Documents\ContentHostHelper.cs (3)
88ITextView textView = flowDocument.StructuralCache.TextContainer.TextView; 113textView = (ITextView)((IServiceProvider)pageViews[i].DocumentPage).GetService(typeof(ITextView));
MS\Internal\Documents\DocumentGrid.cs (2)
902public ITextView TextView 2556((IServiceProvider)pageView).GetService(typeof(ITextView)) as DocumentPageTextView;
MS\Internal\Documents\DocumentPageTextView.cs (7)
48_pageTextView = ((IServiceProvider)_page).GetService(typeof(ITextView)) as ITextView; 71_pageTextView = ((IServiceProvider)_page).GetService(typeof(ITextView)) as ITextView; 348_pageTextView = ((IServiceProvider)_page).GetService(typeof(ITextView)) as ITextView; 705private ITextView _pageTextView;
MS\Internal\Documents\DocumentViewerHelper.cs (3)
75internal static ITextRange Find(FindToolBar findToolBar, TextEditor textEditor, ITextView textView, ITextView masterPageTextView) 411ITextView textView = textContainer.TextView;
MS\Internal\Documents\FlowDocumentPaginator.cs (3)
345ITextView textView; 378textView = (ITextView)((IServiceProvider)flowDocumentPage).GetService(typeof(ITextView));
MS\Internal\Documents\FlowDocumentView.cs (1)
679if (serviceType == typeof(ITextView))
MS\Internal\Documents\IDocumentScrollInfo.cs (1)
184ITextView TextView { get; }
MS\Internal\Documents\MultiPageTextView.cs (4)
600internal ITextView GetPageTextViewFromPosition(ITextPointer position) 729pageTextView = ((IServiceProvider)pageViews[index]).GetService(typeof(ITextView)) as DocumentPageTextView; 1019private ITextPointer GetPositionAtPageBoundary(bool pageTop, ITextView pageTextView, ITextPointer position, double suggestedX) 1359ITextView pageTextView;
MS\Internal\Documents\TextBoxView.cs (36)
62if (serviceType == typeof(ITextView)) 549ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText) 574Rect ITextView.GetRectangleFromTextPosition(ITextPointer position) 628Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 632return ((ITextView)this).GetRectangleFromTextPosition(position); 638Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 717ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 749ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 764bool ITextView.IsAtCaretUnitBoundary(ITextPointer position) 803ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 880ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position) 928TextSegment ITextView.GetLineRange(ITextPointer position) 944ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end) 954bool ITextView.Contains(ITextPointer position) 962void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState) 973void ITextView.BringPointIntoViewAsync(Point point, object userState) 984void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 995void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 1006void ITextView.CancelAsync(object userState) 1017bool ITextView.Validate() 1026bool ITextView.Validate(Point point) 1028return ((ITextView)this).Validate(); 1034bool ITextView.Validate(ITextPointer position) 1080void ITextView.ThrottleBackgroundTasksForUserInput() 1206UIElement ITextView.RenderScope 1217ITextContainer ITextView.TextContainer 1228bool ITextView.IsValid 1239bool ITextView.RendersOwnSelection 1251ReadOnlyCollection<TextSegment> ITextView.TextSegments 1282event BringPositionIntoViewCompletedEventHandler ITextView.BringPositionIntoViewCompleted 1293event BringPointIntoViewCompletedEventHandler ITextView.BringPointIntoViewCompleted 1304event BringLineIntoViewCompletedEventHandler ITextView.BringLineIntoViewCompleted 1315event BringPageIntoViewCompletedEventHandler ITextView.BringPageIntoViewCompleted 1324event EventHandler ITextView.Updated 1419&& (!((ITextView)this).RendersOwnSelection || args.OwnerType != typeof(TextSelection))) 1828bool shouldRenderSelection = ((ITextView)this).RendersOwnSelection
MS\Internal\Documents\TextViewBase.cs (27)
133internal static void BringRectIntoViewMinimally(ITextView textView, Rect rect) 464ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText) 472Rect ITextView.GetRectangleFromTextPosition(ITextPointer position) 480Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform) 488Geometry ITextView.GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition) 496ITextPointer ITextView.GetPositionAtNextLine(ITextPointer position, double suggestedX, int count, out double newSuggestedX, out int linesMoved) 504ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 512bool ITextView.IsAtCaretUnitBoundary(ITextPointer position) 520ITextPointer ITextView.GetNextCaretUnitPosition(ITextPointer position, LogicalDirection direction) 528ITextPointer ITextView.GetBackspaceCaretUnitPosition(ITextPointer position) 536TextSegment ITextView.GetLineRange(ITextPointer position) 544ReadOnlyCollection<GlyphRun> ITextView.GetGlyphRuns(ITextPointer start, ITextPointer end) 552bool ITextView.Contains(ITextPointer position) 560void ITextView.BringPositionIntoViewAsync(ITextPointer position, object userState) 568void ITextView.BringPointIntoViewAsync(Point point, object userState) 576void ITextView.BringLineIntoViewAsync(ITextPointer position, double suggestedX, int count, object userState) 584void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 592void ITextView.CancelAsync(object userState) 600bool ITextView.Validate() 608bool ITextView.Validate(Point point) 616bool ITextView.Validate(ITextPointer position) 624void ITextView.ThrottleBackgroundTasksForUserInput() 632UIElement ITextView.RenderScope 640ITextContainer ITextView.TextContainer 648bool ITextView.IsValid 656bool ITextView.RendersOwnSelection 664ReadOnlyCollection<TextSegment> ITextView.TextSegments
MS\Internal\LayoutDump.cs (1)
587TextDocumentView tv = (TextDocumentView)((IServiceProvider)flowDocumentPage).GetService(typeof(ITextView));
MS\Internal\PtsHost\BreakRecordTable.cs (3)
251ITextView textView; 260textView = (ITextView)((IServiceProvider)page).GetService(typeof(ITextView));
MS\Internal\PtsHost\FlowDocumentPage.cs (7)
363Invariant.Assert(_textView != null && ((ITextView)_textView).TextSegments.Count > 0); 364return new HostedElements(((ITextView)_textView).TextSegments); 978for (int segmentIndex = 0; segmentIndex < ((ITextView)_textView).TextSegments.Count; segmentIndex++) 980if (((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].Start) >= 0 && 981((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].End) < 0) 1033TextDocumentView textView = (TextDocumentView)((IServiceProvider)this).GetService(typeof(ITextView)); 1141if (serviceType == typeof(ITextView))
System\Windows\Annotations\AnnotationService.cs (4)
257ITextView textView = GetTextView(document); 761ITextView textView = GetTextView(document); 1089private static ITextView GetTextView(IDocumentPaginatorSource document) 1091ITextView textView = null;
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
124ITextView textView = _textContainer?.TextView; 216ITextView textView = textContainer?.TextView;
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (5)
48ITextView textView = textElement.TextContainer.TextView; 95ITextView textView = textElement.TextContainer.TextView; 149ITextView textView = textElement.TextContainer.TextView; 168private Rect CalculateVisibleRect(ITextView textView, TextElement textElement, TextPointer startPointer, TextPointer endPointer) 221ITextView textView = textElement?.TextContainer?.TextView;
System\Windows\Controls\FlowDocumentScrollViewer.cs (8)
836ITextView textView = GetTextView(); 897ITextView textView = GetTextView(); 965ITextView textView = null; 1254private ITextView GetTextView() 1256ITextView textView = null; 1259textView = (ITextView)((IServiceProvider)RenderScope).GetService(typeof(ITextView)); 1841if (serviceType == typeof(ITextView))
System\Windows\Controls\PasswordBox.cs (2)
1020ITextView textview = TextEditor.GetTextView(_renderScope); 1207if ((textBoxView as ITextView)?.RendersOwnSelection == true)
System\Windows\Controls\PasswordTextContainer.cs (3)
457ITextView ITextContainer.TextView 471internal ITextView TextView 947private ITextView _textview;
System\Windows\Controls\Primitives\BulletDecorator.cs (1)
340TextDocumentView tdv = ((IServiceProvider)text).GetService(typeof(ITextView)) as TextDocumentView;
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
521if (serviceType == typeof(ITextView))
System\Windows\Controls\Primitives\DocumentViewerBase.cs (7)
684ITextView masterPageTextView = null; 688masterPageTextView = ((IServiceProvider)masterPage).GetService(typeof(ITextView)) as ITextView; 762ITextView textView = null; 767textView = ((IServiceProvider)masterPage).GetService(typeof(ITextView)) as ITextView; 1744if (serviceType == typeof(ITextView))
System\Windows\Controls\Primitives\TextBoxBase.cs (4)
1808ITextView textView = (ITextView)((IServiceProvider)_renderScope).GetService(typeof(ITextView)); 2123if ((textBoxView as ITextView)?.RendersOwnSelection == true)
System\Windows\Controls\TextAdaptor.cs (7)
87ITextView textView = GetUpdatedTextView(); 169internal ITextView GetUpdatedTextView() 171ITextView textView = _textContainer.TextView; 218ITextView textView = GetUpdatedTextView(); 332private Rect GetVisibleRectangle(ITextView textView) 505ITextView textView = GetUpdatedTextView(); 654ITextView textView = GetUpdatedTextView();
System\Windows\Controls\TextBlock.cs (3)
270if (serviceType == typeof(ITextView)) 395if (((ITextView)_complexContent.TextView).Validate(point)) 2688internal ITextView TextView
System\Windows\Controls\TextRangeAdaptor.cs (7)
521ITextView textView; 669ITextView pageTextView = textView; 686ITextView pageTextView = textView; 727ITextView textView; 907ITextView pageTextView = textView; 990ITextView textView; 1133ITextView pageTextView = ((MultiPageTextView)textView).GetPageTextViewFromPosition(position);
System\Windows\Documents\CompositionAdorner.cs (6)
39internal CompositionAdorner(ITextView textView) : this(textView, new ArrayList()) 52internal CompositionAdorner(ITextView textView, ArrayList attributeRanges) 360internal void Initialize(ITextView textView) 394private ITextView _textView; 450internal AttributeRange(ITextView textView, ITextPointer start, ITextPointer end, TextServicesDisplayAttribute textServicesDisplayAttribute) 639private ITextView _textView;
System\Windows\Documents\DocumentSequence.cs (1)
1077if (serviceType == typeof(ITextView))
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
277ITextView ITextContainer.TextView 809private ITextView _textview;
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
355ITextView textView = ((ITextPointer)this).TextContainer.TextView;
System\Windows\Documents\DocumentSequenceTextView.cs (6)
459return ((ITextView)this).IsValid; 467return ((ITextView)this).IsValid; 571private ITextView ChildTextView 580_childTextView = (ITextView)isp.GetService(typeof(ITextView)); 618private ITextView _childTextView;
System\Windows\Documents\FixedDocument.cs (1)
1378if (serviceType == typeof(ITextView))
System\Windows\Documents\FixedTextContainer.cs (2)
246ITextView ITextContainer.TextView 647private ITextView _textview;
System\Windows\Documents\FixedTextPointer.cs (1)
565ITextView textView = ((ITextPointer)this).TextContainer.TextView;
System\Windows\Documents\ImmComposition.cs (3)
586ITextView view; 693ITextView view; 1615ITextView view;
System\Windows\Documents\ITextContainer.cs (1)
137ITextView TextView { get; set; }
System\Windows\Documents\ITextSelection.cs (1)
151ITextView TextView { get; }
System\Windows\Documents\NullTextContainer.cs (1)
242ITextView ITextContainer.TextView
System\Windows\Documents\TextContainer.cs (3)
1764ITextView ITextContainer.TextView 1778internal ITextView TextView 3612private ITextView _textview;
System\windows\Documents\TextEditor.cs (7)
283internal static ITextView GetTextView(UIElement scope) 287return (serviceProvider != null) ? serviceProvider.GetService(typeof(ITextView)) as ITextView : null; 836internal ITextView TextView 1468Invariant.Assert(sender is ITextView); 1469((ITextView)sender).BringPointIntoViewCompleted -= new BringPointIntoViewCompletedEventHandler(HandleBringPointIntoViewCompleted); 1948private ITextView _textView;
System\windows\Documents\TextEditorDragDrop.cs (1)
665private ITextView TextView
System\windows\Documents\TextEditorSelection.cs (12)
102internal static TextSegment GetNormalizedLineRange(ITextView textView, ITextPointer position) 126internal static bool IsPaginated(ITextView textview) 1764Invariant.Assert(sender is ITextView); 1765((ITextView)sender).BringLineIntoViewCompleted -= new BringLineIntoViewCompletedEventHandler(HandleMoveByLineCompleted); 1794Invariant.Assert(sender is ITextView); 1795((ITextView)sender).BringPageIntoViewCompleted -= new BringPageIntoViewCompletedEventHandler(HandleMoveByPageCompleted); 1826Invariant.Assert(sender is ITextView); 1827((ITextView)sender).BringLineIntoViewCompleted -= new BringLineIntoViewCompletedEventHandler(HandleSelectByLineCompleted); 1889Invariant.Assert(sender is ITextView); 1890((ITextView)sender).BringPageIntoViewCompleted -= new BringPageIntoViewCompletedEventHandler(HandleSelectByPageCompleted); 2439private static double GetAbsoluteXOffset(ITextView textview, ITextPointer position) 2460private static double GetViewportXOffset(ITextView textview, double suggestedX)
System\Windows\Documents\TextPointerBase.cs (5)
679internal static bool IsAtLineWrappingPosition(ITextPointer position, ITextView textView) 795internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count) 801internal static int MoveToLineBoundary(ITextPointer thisPointer, ITextView textView, int count, bool respectNonMeargeableInlineStart) 861ITextView textView = thisPointer.TextContainer.TextView; 1114internal static bool ValidateLayout(ITextPointer thisPointer, ITextView textView)
System\Windows\Documents\TextRangeEditTables.cs (4)
1566internal static bool TableBorderHitTest(ITextView textView, Point pt) 1578ITextView textView, Point point, 1655internal static TableColumnResizeInfo StartColumnResize(ITextView textView, Point pt) 1689internal TableColumnResizeInfo(ITextView textView, Table table, int columnIndex, Rect columnRect, double tableAutofitWidth, double[] columnWidths)
System\windows\Documents\TextSelection.cs (2)
2610ITextView ITextSelection.TextView 2618private ITextView TextView
System\Windows\Documents\TextStore.cs (6)
933ITextView view; 1009ITextView view; 1133ITextView view; 2084internal ITextView TextView 2590private void GetVisualInfo(out PresentationSource source, out IWin32Window win32Window, out ITextView view) 2980ITextView view;