private InlineTag GetHighlight(EntryItemType type) { switch (type) { case EntryItemType.Type: return(InlineTag.Tex); case EntryItemType.Key: return(InlineTag.Code); case EntryItemType.Name: return(InlineTag.Emphasis); case EntryItemType.Value: return(InlineTag.String); } return(InlineTag.String); }
private void AddItem(List <BibEntryItem> items, int start, int end, EntryItemType type) { items.Add(new BibEntryItem(start, end - start, type)); }
public BibEntryItem(int position, int length, EntryItemType type) { Type = type; SourcePosition = position; SourceLength = length; }