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