private void SetTextStyle(XmlNode node)
 {
     if (node.NodeType == XmlNodeType.Element)
     {
         if (String.Equals(node.Name, "b", StringComparison.OrdinalIgnoreCase))
         {
             _style.Bold();
         }
         else if (String.Equals(node.Name, "i", StringComparison.OrdinalIgnoreCase))
         {
             _style.Italic();
         }
         else if (String.Equals(node.Name, "u", StringComparison.OrdinalIgnoreCase))
         {
             _style.Underline();
         }
         else if (String.Equals(node.Name, "center", StringComparison.OrdinalIgnoreCase))
         {
             _style.HAlign = HAlignment.Center;
         }
         else if (String.Equals(node.Name, "left", StringComparison.OrdinalIgnoreCase))
         {
             _style.HAlign = HAlignment.Left;
         }
         else if (String.Equals(node.Name, "right", StringComparison.OrdinalIgnoreCase))
         {
             _style.HAlign = HAlignment.Right;
         }
         else if (String.Equals(node.Name, "both", StringComparison.OrdinalIgnoreCase))
         {
             _style.HAlign = HAlignment.FullWidth;
         }
     }
 }