void GlyphTextMarkerServiceImpl_GetGlyphTextMarkerAndSpan(object sender, GetGlyphTextMarkerAndSpanEventArgs e) { if (e.TextView != TextView) { return; } e.Result = GetGlyphTextMarkerAndSpan(e.Span); }
public GlyphTextMarkerAndSpan[] GetMarkers(ITextView textView, SnapshotSpan span) { if (textView is null) { throw new ArgumentNullException(nameof(textView)); } if (textView.TextSnapshot != span.Snapshot) { throw new ArgumentException(); } var e = new GetGlyphTextMarkerAndSpanEventArgs(textView, span); GetGlyphTextMarkerAndSpan?.Invoke(this, e); return(e.Result ?? Array.Empty <GlyphTextMarkerAndSpan>()); }