/// <summary> /// Set Color and font to a highlight descriptor settings. /// </summary> /// <param name="sb">the string builder building the RTF</param> /// <param name="hd">the HighlightDescriptor with the font and color settings to apply.</param> /// <param name="colors">colors hashtable</param> /// <param name="fonts">fonts hashtable</param> private void SetDescriptorSettings(StringBuilder sb, HighlightDescriptor hd, Hashtable colors, Hashtable fonts) { SetColor(sb, hd.Color, colors); if (hd.Font != null) { SetFont(sb, hd.Font, fonts); SetFontSize(sb, (int)hd.Font.Size); } EndTags(sb); }
public int Add(HighlightDescriptor value) { return(mInnerList.Add(value)); }
public int IndexOf(HighlightDescriptor value) { return(mInnerList.IndexOf(value)); }
public bool Contains(HighlightDescriptor value) { return(mInnerList.Contains(value)); }
public void Remove(HighlightDescriptor value) { mInnerList.Remove(value); }
public void Insert(int index, HighlightDescriptor value) { mInnerList.Insert(index, value); }
public int IndexOf(HighlightDescriptor value) { return mInnerList.IndexOf(value); }
public bool Contains(HighlightDescriptor value) { return mInnerList.Contains(value); }
public int Add(HighlightDescriptor value) { return mInnerList.Add(value); }