/** * Appends a FontAwesomeIcon to the BootstrapText under construction * * @return the updated builder instance */ public Builder AddFontAwesomeIcon(string iconCode) { IIconSet iconSet = TypefaceProvider.RetrieveRegisteredIconSet(FontAwesome.FontAwesomePath, _editMode); _sb.Append(iconSet.UnicodeForKey(iconCode.Replace("\\-", "_"))); _fontIndicesMap.Add(_sb.Length, iconSet); return(this); }
/** * Appends a font icon to the BootstrapText under construction * * @param iconSet a font icon * @return the updated builder instance */ public Builder AddIcon(string iconCode, IIconSet iconSet) { _sb.Append(iconSet.UnicodeForKey(iconCode.Replace("\\-", "_"))); _fontIndicesMap.Add(_sb.Length, iconSet); return(this); }