/// <summary> /// Serializes the specified writer. /// </summary> /// <param name="writer">Writer.</param> public override void Serialize(XmlWriter writer) { writer.WriteStartElement("DefineEditTextTag"); writer.WriteElementString("CharacterId", characterId.ToString()); this.rect.Serialize(writer); writer.WriteElementString("WordWrap", wordWrap.ToString()); writer.WriteElementString("Multiline", multiline.ToString()); writer.WriteElementString("Password", password.ToString()); writer.WriteElementString("ReadOnly", readOnly.ToString()); writer.WriteElementString("HasMaxLength", HasMaxLength.ToString()); writer.WriteElementString("HasFont", HasFont.ToString()); writer.WriteElementString("AutoSize", autoSize.ToString()); writer.WriteElementString("HasLayout", HasLayout.ToString()); writer.WriteElementString("NoSelect", noSelect.ToString()); writer.WriteElementString("Border", border.ToString()); writer.WriteElementString("Html", html.ToString()); writer.WriteElementString("UsedOutlines", usedOutlines.ToString()); if (HasFont) { writer.WriteElementString("FontId", fontId.ToString()); writer.WriteElementString("FontHeight", fontHeight.ToString()); } if (HasTextColor) { textColor.Serialize(writer); } if (HasMaxLength) { writer.WriteElementString("MaxLenght", maxLenght.ToString()); } if (HasLayout) { writer.WriteElementString("Align", align.ToString()); writer.WriteElementString("LeftMargin", leftMargin.ToString()); writer.WriteElementString("RightMargin", rightMargin.ToString()); writer.WriteElementString("Indent", indent.ToString()); writer.WriteElementString("Leading", leading.ToString()); } writer.WriteElementString("VariableName", variableName.ToString()); if (HasText) { writer.WriteElementString("InitialText", initialText.ToString()); } writer.WriteEndElement(); }