internal override void Write(XmlWriter writer) { base.Write(writer); writer.WriteAttributeString("id", item.Id); writer.WriteAttributeString("visible", visibleFlag.ToString()); writer.WriteAttributeString("status", status.ToString()); if (status == DockItemStatus.AutoHide) { writer.WriteAttributeString("autoHidePosition", barDocPosition.ToString()); } if (autoHideSize != -1) { writer.WriteAttributeString("autoHideSize", autoHideSize.ToString()); } if (!floatRect.Equals(Gdk.Rectangle.Zero)) { writer.WriteAttributeString("floatX", floatRect.X.ToString()); writer.WriteAttributeString("floatY", floatRect.Y.ToString()); writer.WriteAttributeString("floatWidth", floatRect.Width.ToString()); writer.WriteAttributeString("floatHeight", floatRect.Height.ToString()); } }