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; 269viewLine = TextView.TextViewLines.GetTextViewLineContainingBufferPosition(mappedPoint); 275if (!TryMapToSingleSnapshotSpan(mappingTagSpan.Span, TextView.TextSnapshot, out var span)) 278if (!TextView.TextViewLines.IntersectsBufferSpan(span)) 292var mappedPoint = TextView.BufferGraph.MapUpToSnapshot( 293point.Value, PointTrackingMode.Negative, PositionAffinity.Predecessor, TextView.TextSnapshot);
InlineDiagnostics\InlineDiagnosticsAdornmentManager.cs (10)
45TextView.ViewportWidthChanged += TextView_ViewportWidthChanged; 55Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 62var document = TextView.TextBuffer.AsTextContainer()?.GetOpenDocumentInCurrentContext(); 72var normalizedCollectionSpan = new NormalizedSnapshotSpanCollection(TextView.TextViewLines.FormattedSpan); 80Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 106Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 112var viewLines = TextView.TextViewLines; 159var graphicsResult = tag.GetGraphics(TextView, unused: null!, GetFormat(classificationType)); 164if (lineView.Right >= TextView.ViewportWidth - visualElement.DesiredSize.Width) 174: tag.Location == InlineDiagnosticsLocations.PlacedAtEndOfEditor ? TextView.ViewportRight - visualElement.DesiredSize.Width
LineSeparators\LineSeparatorAdornmentManager.cs (5)
26Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 28var viewSnapshot = TextView.TextSnapshot; 29var viewLines = TextView.TextViewLines; 51if (!TryMapToSingleSnapshotSpan(tagMappingSpan.Span, TextView.TextSnapshot, out var span)) 59var graphicsResult = tag.GetGraphics(TextView, geometry, format: null);
StringIndentation\StringIndentationAdornmentManager.cs (7)
34Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 36var viewSnapshot = TextView.TextSnapshot; 37var viewLines = TextView.TextViewLines; 59if (!TryMapToSingleSnapshotSpan(tagMappingSpan.Span, TextView.TextSnapshot, out var span)) 65if (VisibleBlock.CreateVisibleBlock(span, orderedHoleSpans, TextView) is not VisibleBlock block) 68var brush = tagMappingSpan.Tag.GetBrush(TextView); 106var mapped = MapUpToView(TextView, span);