1 write to TextView
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Adornments\AbstractAdornmentManager.cs (1)
74TextView = textView;
37 references to TextView
Microsoft.CodeAnalysis.EditorFeatures.Wpf (37)
Adornments\AbstractAdornmentManager.cs (15)
95TextView.Closed -= OnTextViewClosed; 96TextView.LayoutChanged -= OnLayoutChanged; 111Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 114var viewSnapshot = TextView.TextSnapshot; 183_threadingContext.JoinableTaskFactory.WithPriority(TextView.VisualElement.Dispatcher, DispatcherPriority.Render).RunAsync(async () => 206Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 215if (TextView.IsClosed) 222var viewSnapshot = TextView.TextSnapshot; 234Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 236var viewLines = TextView.TextViewLines; 270viewLine = TextView.TextViewLines.GetTextViewLineContainingBufferPosition(mappedPoint); 276if (!TryMapToSingleSnapshotSpan(mappingTagSpan.Span, TextView.TextSnapshot, out var span)) 279if (!TextView.TextViewLines.IntersectsBufferSpan(span)) 293var mappedPoint = TextView.BufferGraph.MapUpToSnapshot( 294point.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)
27Contract.ThrowIfFalse(TextView.VisualElement.Dispatcher.CheckAccess()); 29var viewSnapshot = TextView.TextSnapshot; 30var viewLines = TextView.TextViewLines; 52if (!TryMapToSingleSnapshotSpan(tagMappingSpan.Span, TextView.TextSnapshot, out var span)) 60var 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; 60if (!TryMapToSingleSnapshotSpan(tagMappingSpan.Span, TextView.TextSnapshot, out var span)) 66if (VisibleBlock.CreateVisibleBlock(span, orderedHoleSpans, TextView) is not VisibleBlock block) 69var brush = tagMappingSpan.Tag.GetBrush(TextView); 107var mapped = MapUpToView(TextView, span);