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