/// <summary>
 /// Writes the attribute.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="value">The value.</param>
 protected void WriteAttribute(string name, TextDecorationCollection value)
 {
     if (this.settings.WriteDefaultValues || value != null) {
         this.writer.WriteAttributeString(name, value.Format());
     }
 }
 /// <summary>
 /// Writes a font weight attribute.
 /// </summary>
 /// <param name="output">The output.</param>
 /// <param name="name">The name.</param>
 /// <param name="value">The value.</param>
 protected static void WriteAttribute(XmlWriter output, string name, TextDecorationCollection value)
 {
     output.WriteAttributeString(name, value.Format());
 }