public override void Deserialize(AnnDeserializeOptions options, XmlNode element, XmlDocument document) { base.Deserialize(options, element, document); XmlElement xmlElement = element as XmlElement; _rtfText = ReadStringElement(document, "Rtf", element); }
public override void Deserialize(AnnDeserializeOptions options, XmlNode element, XmlDocument document) { base.Deserialize(options, element, document); string data = string.Empty; XmlElement xmlElement = element as XmlElement; XmlNodeList nodeList = xmlElement.GetElementsByTagName("CenterPointRadius"); foreach (XmlNode childNode in nodeList) { if (childNode != null && (childNode.ParentNode == element)) { data = childNode.FirstChild.Value.Trim(); break; } } _centerPointRadius = LeadLengthD.Create(double.Parse(data)); }
public override void Deserialize(AnnDeserializeOptions options, XmlNode element, XmlDocument document) { base.Deserialize(options, element, document); string data = string.Empty; XmlElement xmlElement = element as XmlElement; XmlNodeList nodeList = xmlElement.GetElementsByTagName("AnglePrecision"); foreach (XmlNode childNode in nodeList) { if (childNode != null && (childNode.ParentNode == element)) { data = childNode.FirstChild.Value.Trim(); break; } } _anglePrecision = int.Parse(data); }