public static void AddJustification(Paragraph paragraph, StringBuilder style) { String justification = GetJustification(paragraph.GetJustification()); if (!string.IsNullOrEmpty(justification)) style.Append("text-align:" + justification + ";"); }
public static void SetJustification(Paragraph paragraph, XmlElement XmlElement) { String justification = GetJustification(paragraph.GetJustification()); if (!string.IsNullOrEmpty(justification)) XmlElement.SetAttribute("text-align", justification); }