예제 #1
0
 /// <summary>
 /// Takes the attribute name we want to use in the xml and uses the style prop for a point property and generates
 /// a tuple with the attribute name and value if this property is set.
 /// </summary>
 private void GetPointPropAttribute(string attributeName, IStyleProp <int> sizeProp, List <Tuple <string, string> > resultsList)
 {
     if (sizeProp.ValueIsSet)
     {
         resultsList.Add(new Tuple <string, string>(attributeName, sizeProp.Value / 1000 + " pt"));
     }
 }
예제 #2
0
 private void GetColorValueAttribute(string attributeName, IStyleProp <Color> fontColor, List <Tuple <string, string> > resultsList)
 {
     if (fontColor.ValueIsSet)
     {
         var color = fontColor.Value;
         GetColorValueFromSystemColor(attributeName, resultsList, color);
     }
 }