CatEye.Core.CrotateStageOperationParameters.SerializeToXML C# (CSharp) Méthode

SerializeToXML() public méthode

public SerializeToXML ( System xdoc ) : XmlNode
xdoc System
Résultat System.Xml.XmlNode
        public override System.Xml.XmlNode SerializeToXML(System.Xml.XmlDocument xdoc)
        {
            XmlNode xn = base.SerializeToXML (xdoc);
            xn.Attributes.Append(xdoc.CreateAttribute("Angle")).Value = mAngle.ToString(nfi);
            xn.Attributes.Append(xdoc.CreateAttribute("CropWidth")).Value = mCropWidth.ToString(nfi);
            xn.Attributes.Append(xdoc.CreateAttribute("CropHeight")).Value = mCropHeight.ToString(nfi);
            xn.Attributes.Append(xdoc.CreateAttribute("AspectRatio")).Value = mAspectRatio.ToString(nfi);
            xn.Attributes.Append(xdoc.CreateAttribute("AspectRatioPreset")).Value = mAspectRatioPreset.ToString(nfi);
            xn.Attributes.Append(xdoc.CreateAttribute("AspectRatioCustom")).Value = mAspectRatioCustom.ToString();
            xn.Attributes.Append(xdoc.CreateAttribute("Mode")).Value = ((int)mMode).ToString();

            xn.AppendChild(mCenter.SerializeToXML(xdoc)).Attributes.Append(xdoc.CreateAttribute("Name")).Value = "Center";
            return xn;
        }