Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 public int Add(HighlightDescriptor value)
 {
     return(mInnerList.Add(value));
 }
Esempio n. 3
0
 public int IndexOf(HighlightDescriptor value)
 {
     return(mInnerList.IndexOf(value));
 }
Esempio n. 4
0
 public bool Contains(HighlightDescriptor value)
 {
     return(mInnerList.Contains(value));
 }
Esempio n. 5
0
 public void Remove(HighlightDescriptor value)
 {
     mInnerList.Remove(value);
 }
Esempio n. 6
0
 public void Insert(int index, HighlightDescriptor value)
 {
     mInnerList.Insert(index, value);
 }
Esempio n. 7
0
 /// <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 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);
 }