bool SetHighlightSpan(SnapshotSpan? span) { var classifier = UnderlineClassifierProvider.GetClassifierForView(_view); if (classifier != null) { if (span.HasValue) Mouse.OverrideCursor = Cursors.Hand; else Mouse.OverrideCursor = null; classifier.SetUnderlineSpan(span); return true; } return false; }
private bool SetHighlightSpan(SnapshotSpan?span) { var classifier = UnderlineClassifierProvider.GetClassifierForView(_view); if (classifier != null) { if (span.HasValue) { Mouse.OverrideCursor = Cursors.Hand; } else { Mouse.OverrideCursor = null; } classifier.SetUnderlineSpan(span); return(true); } return(false); }