コード例 #1
0
        public IEnumerable<ICssCompletionListEntry> GetListEntries(CssCompletionContext context)
        {
            Declaration dec = context.ContextItem.FindType<Declaration>();

            if (dec == null || dec.PropertyName == null || dec.PropertyName.Text != "font-family")
                yield break;

            foreach (string item in _entryCache)
            {
                ICssCompletionListEntry entry = new CompletionListEntry(item, 1);
                yield return entry;
            }
        }
コード例 #2
0
        public IEnumerable <ICssCompletionListEntry> GetListEntries(CssCompletionContext context)
        {
            Declaration dec = context.ContextItem.FindType <Declaration>();

            if (dec == null || dec.PropertyName == null || dec.PropertyName.Text != "font-family")
            {
                yield break;
            }

            foreach (string item in _entryCache)
            {
                ICssCompletionListEntry entry = new CompletionListEntry(item, 1);
                yield return(entry);
            }
        }