internal void Export(XmlWriter writer) { if (Sides != BorderSides.None) { // Border start writer.WriteStartElement("Borders"); if (Sides.IsFlagSet(BorderSides.Left)) { ExportBorder(writer, "Left"); } if (Sides.IsFlagSet(BorderSides.Top)) { ExportBorder(writer, "Top"); } if (Sides.IsFlagSet(BorderSides.Right)) { ExportBorder(writer, "Right"); } if (Sides.IsFlagSet(BorderSides.Bottom)) { ExportBorder(writer, "Bottom"); } // Border end writer.WriteEndElement(); } }