コード例 #1
0
 /// <summary>
 /// Gets the added attributes
 /// </summary>
 /// <param name="textAtt">TextAttribute</param>
 /// <returns>Attribute as object</returns>
 public Object GetAttribute(TextAttribute textAtt)
 {
     for (int i = 0; i <= runAttributes[0].Count - 1; i++)
     {
         if (runAttributes[0][i] == textAtt)
         {
             return(runAttributeValues[0][i]);
         }
     }
     return(System.Drawing.Color.Empty);
 }
コード例 #2
0
 public Object GetAttribute(TextAttribute textAtt)
 {
     return(attString.GetAttribute(textAtt));
 }