public void WriteXml(XmlWriter writer) { writer.WriteAttributeString("MinX", MinX.ToInvariantString()); writer.WriteAttributeString("MinY", MinY.ToInvariantString()); writer.WriteAttributeString("MaxX", MaxX.ToInvariantString()); writer.WriteAttributeString("MaxY", MaxY.ToInvariantString()); }