/// <summary> /// Сохранить конфигурацию компонента в XML-узле /// </summary> public override void SaveToXml(XmlElement xmlElem) { base.SaveToXml(xmlElem); xmlElem.AppendElem("ForeColor", ForeColor); Font.AppendElem(xmlElem, "Font", Font); xmlElem.AppendElem("Text", Text); xmlElem.AppendElem("HAlign", HAlign); xmlElem.AppendElem("VAlign", VAlign); xmlElem.AppendElem("WordWrap", WordWrap); xmlElem.AppendElem("AutoSize", AutoSize); }
/// <summary> /// Сохранить конфигурацию компонента в XML-узле /// </summary> public override void SaveToXml(XmlElement xmlElem) { base.SaveToXml(xmlElem); xmlElem.AppendElem("ForeColor", ForeColor); Font.AppendElem(xmlElem, "Font", Font); xmlElem.AppendElem("ImageName", ImageName); Size.AppendElem(xmlElem, "ImageSize", ImageSize); xmlElem.AppendElem("Text", Text); xmlElem.AppendElem("Action", Action); xmlElem.AppendElem("BoundProperty", BoundProperty); xmlElem.AppendElem("InCnlNum", InCnlNum); xmlElem.AppendElem("CtrlCnlNum", CtrlCnlNum); }
/// <summary> /// Сохранить свойства документа схемы в XML-узле. /// </summary> public void SaveToXml(XmlElement xmlElem) { if (xmlElem == null) { throw new ArgumentNullException("xmlElem"); } Version = SchemeUtils.SchemeVersion; xmlElem.AppendElem("Version", Version); Size.AppendElem(xmlElem, "Size", Size); xmlElem.AppendElem("BackColor", BackColor); xmlElem.AppendElem("BackImageName", BackImageName); Font.AppendElem(xmlElem, "Font", Font); xmlElem.AppendElem("ForeColor", ForeColor); xmlElem.AppendElem("Title", Title); xmlElem.AppendElem("CnlFilter", ScadaUtils.IntCollectionToStr(CnlFilter)); }