示例#1
0
 void GlyphTextMarkerServiceImpl_GetGlyphTextMarkerAndSpan(object sender, GetGlyphTextMarkerAndSpanEventArgs e)
 {
     if (e.TextView != TextView)
     {
         return;
     }
     e.Result = GetGlyphTextMarkerAndSpan(e.Span);
 }
示例#2
0
        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>());
        }