1 write to TextView
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Adornments\AbstractAdornmentManager.cs (1)
74
TextView
= textView;
37 references to TextView
Microsoft.CodeAnalysis.EditorFeatures.Wpf (37)
Adornments\AbstractAdornmentManager.cs (15)
95
TextView
.Closed -= OnTextViewClosed;
96
TextView
.LayoutChanged -= OnLayoutChanged;
111
Contract.ThrowIfFalse(
TextView
.VisualElement.Dispatcher.CheckAccess());
114
var viewSnapshot =
TextView
.TextSnapshot;
183
_threadingContext.JoinableTaskFactory.WithPriority(
TextView
.VisualElement.Dispatcher, DispatcherPriority.Render).RunAsync(async () =>
206
Contract.ThrowIfFalse(
TextView
.VisualElement.Dispatcher.CheckAccess());
215
if (
TextView
.IsClosed)
222
var viewSnapshot =
TextView
.TextSnapshot;
234
Contract.ThrowIfFalse(
TextView
.VisualElement.Dispatcher.CheckAccess());
236
var viewLines =
TextView
.TextViewLines;
270
viewLine =
TextView
.TextViewLines.GetTextViewLineContainingBufferPosition(mappedPoint);
276
if (!TryMapToSingleSnapshotSpan(mappingTagSpan.Span,
TextView
.TextSnapshot, out var span))
279
if (!
TextView
.TextViewLines.IntersectsBufferSpan(span))
293
var mappedPoint =
TextView
.BufferGraph.MapUpToSnapshot(
294
point.Value, PointTrackingMode.Negative, PositionAffinity.Predecessor,
TextView
.TextSnapshot);
InlineDiagnostics\InlineDiagnosticsAdornmentManager.cs (10)
45
TextView
.ViewportWidthChanged += TextView_ViewportWidthChanged;
55
Contract.ThrowIfFalse(
TextView
.VisualElement.Dispatcher.CheckAccess());
62
var document =
TextView
.TextBuffer.AsTextContainer()?.GetOpenDocumentInCurrentContext();
72
var normalizedCollectionSpan = new NormalizedSnapshotSpanCollection(
TextView
.TextViewLines.FormattedSpan);
80
Contract.ThrowIfFalse(
TextView
.VisualElement.Dispatcher.CheckAccess());
106
Contract.ThrowIfFalse(
TextView
.VisualElement.Dispatcher.CheckAccess());
112
var viewLines =
TextView
.TextViewLines;
159
var graphicsResult = tag.GetGraphics(
TextView
, unused: null!, GetFormat(classificationType));
164
if (lineView.Right >=
TextView
.ViewportWidth - visualElement.DesiredSize.Width)
174
: tag.Location == InlineDiagnosticsLocations.PlacedAtEndOfEditor ?
TextView
.ViewportRight - visualElement.DesiredSize.Width
LineSeparators\LineSeparatorAdornmentManager.cs (5)
27
Contract.ThrowIfFalse(
TextView
.VisualElement.Dispatcher.CheckAccess());
29
var viewSnapshot =
TextView
.TextSnapshot;
30
var viewLines =
TextView
.TextViewLines;
52
if (!TryMapToSingleSnapshotSpan(tagMappingSpan.Span,
TextView
.TextSnapshot, out var span))
60
var graphicsResult = tag.GetGraphics(
TextView
, geometry, format: null);
StringIndentation\StringIndentationAdornmentManager.cs (7)
35
Contract.ThrowIfFalse(
TextView
.VisualElement.Dispatcher.CheckAccess());
37
var viewSnapshot =
TextView
.TextSnapshot;
38
var viewLines =
TextView
.TextViewLines;
60
if (!TryMapToSingleSnapshotSpan(tagMappingSpan.Span,
TextView
.TextSnapshot, out var span))
66
if (VisibleBlock.CreateVisibleBlock(span, orderedHoleSpans,
TextView
) is not VisibleBlock block)
69
var brush = tagMappingSpan.Tag.GetBrush(
TextView
);
107
var mapped = MapUpToView(
TextView
, span);