/// <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);
 }
        /// <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, FontNameIndex fonts)
        {
            if (hd.Color != Color.Transparent)
            {
                SetColor(sb, hd.Color, colors);
            }
            Font aFont = hd.Font;

            if (aFont != null)
            {
                SetFont(sb, aFont, fonts);
                SetFontSize(sb, (int)aFont.Size);
                sb.Append(m_FontStyles.GetFontStyle(aFont));
            }
            EndTags(sb);
        }
 /// <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 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));
 }
 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);
 }