Skip to content

Instantly share code, notes, and snippets.

@cromica
Created June 2, 2015 12:49
Show Gist options
  • Save cromica/a55d2a6b9cbd848af1b7 to your computer and use it in GitHub Desktop.
Save cromica/a55d2a6b9cbd848af1b7 to your computer and use it in GitHub Desktop.
sample code on how to specify custom icon for AutoSuggest provider using Integration API
[AutoSuggestProvider(Id = "SourceCopyAutoSuggestProvider", Name = "AutoSuggest provider for copying the source words")]
public class SourceCopyAutoSuggestProvider : AbstractAutoSuggestProvider
{
private List<string> _segmentWordSuggestCandidates;
public SourceCopyAutoSuggestProvider()
{
// Set the default icon for the suggestions from this provider
Icon = new Icon(SystemIcons.Exclamation, 16, 16);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment