public override int GetHashCode() { unchecked { var hashCode = HasBackColor.GetHashCode(); hashCode = (hashCode * 397) ^ HasForeColor.GetHashCode(); hashCode = (hashCode * 397) ^ HasNextAvailableId.GetHashCode(); hashCode = (hashCode * 397) ^ HasBooleanProperties.GetHashCode(); hashCode = (hashCode * 397) ^ HasBorderStyle.GetHashCode(); hashCode = (hashCode * 397) ^ HasMousePointer.GetHashCode(); hashCode = (hashCode * 397) ^ HasScrollBars.GetHashCode(); hashCode = (hashCode * 397) ^ HasDisplayedSize.GetHashCode(); hashCode = (hashCode * 397) ^ HasLogicalSize.GetHashCode(); hashCode = (hashCode * 397) ^ HasScrollPosition.GetHashCode(); hashCode = (hashCode * 397) ^ HasGroupCount.GetHashCode(); hashCode = (hashCode * 397) ^ HasMouseIcon.GetHashCode(); hashCode = (hashCode * 397) ^ HasCycle.GetHashCode(); hashCode = (hashCode * 397) ^ HasSpecialEffect.GetHashCode(); hashCode = (hashCode * 397) ^ HasBorderColor.GetHashCode(); hashCode = (hashCode * 397) ^ HasCaption.GetHashCode(); hashCode = (hashCode * 397) ^ HasFont.GetHashCode(); hashCode = (hashCode * 397) ^ HasPicture.GetHashCode(); hashCode = (hashCode * 397) ^ HasZoom.GetHashCode(); hashCode = (hashCode * 397) ^ HasPictureAlignment.GetHashCode(); hashCode = (hashCode * 397) ^ PictureTiling.GetHashCode(); hashCode = (hashCode * 397) ^ HasPictureSizeMode.GetHashCode(); hashCode = (hashCode * 397) ^ HasShapeCookie.GetHashCode(); hashCode = (hashCode * 397) ^ HasDrawBuffer.GetHashCode(); return(hashCode); } }
/// <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(); }