1 write to TextView
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Adornments\AbstractAdornmentManager.cs (1)
73TextView = textView;
37 references to TextView
Microsoft.CodeAnalysis.EditorFeatures.Wpf (37)
Adornments\AbstractAdornmentManager.cs (15)
94TextView.Closed -= OnTextViewClosed; 95TextView.LayoutChanged -= OnLayoutChanged; 110Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 113var viewSnapshot = TextView.TextSnapshot; 182_threadingContext.JoinableTaskFactory.WithPriority(TextView.VisualElement.Dispatcher, DispatcherPriority.Render).RunAsync(async () => 205Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 214if (TextView.IsClosed) 221var viewSnapshot = TextView.TextSnapshot; 233Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 235var viewLines = TextView.TextViewLines; 268viewLine = TextView.TextViewLines.GetTextViewLineContainingBufferPosition(mappedPoint); 277if (!TryMapToSingleSnapshotSpan(mappingTagSpan.Span, TextView.TextSnapshot, out var span)) 282if (!TextView.TextViewLines.IntersectsBufferSpan(span)) 298var mappedPoint = TextView.BufferGraph.MapUpToSnapshot( 299point.Value, PointTrackingMode.Negative, PositionAffinity.Predecessor, TextView.TextSnapshot);
InlineDiagnostics\InlineDiagnosticsAdornmentManager.cs (10)
48TextView.ViewportWidthChanged += TextView_ViewportWidthChanged; 58Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 65var document = TextView.TextBuffer.AsTextContainer()?.GetOpenDocumentInCurrentContext(); 75var normalizedCollectionSpan = new NormalizedSnapshotSpanCollection(TextView.TextViewLines.FormattedSpan); 83Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 109Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 115var viewLines = TextView.TextViewLines; 158var graphicsResult = tag.GetGraphics(TextView, unused: null!, GetFormat(classificationType)); 163if (lineView.Right >= TextView.ViewportWidth - visualElement.DesiredSize.Width) 173: tag.Location == InlineDiagnosticsLocations.PlacedAtEndOfEditor ? TextView.ViewportRight - visualElement.DesiredSize.Width
LineSeparators\LineSeparatorAdornmentManager.cs (5)
27Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 29var viewSnapshot = TextView.TextSnapshot; 30var viewLines = TextView.TextViewLines; 48if (!TryMapToSingleSnapshotSpan(tagMappingSpan.Span, TextView.TextSnapshot, out var span)) 58var graphicsResult = tag.GetGraphics(TextView, geometry, format: null);
StringIndentation\StringIndentationAdornmentManager.cs (7)
35Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 37var viewSnapshot = TextView.TextSnapshot; 38var viewLines = TextView.TextViewLines; 51if (!TryMapToSingleSnapshotSpan(tagMappingSpan.Span, TextView.TextSnapshot, out var span)) 57if (VisibleBlock.CreateVisibleBlock(span, orderedHoleSpans, TextView) is not VisibleBlock block) 61var brush = tag.GetBrush(TextView); 99var mapped = MapUpToView(TextView, span);