lu
2025-02-28 5b419c5a4fd892b1777e8c5ac584bf2df3cbbb3e
DevApp/Gs.DevApp/DevFrm/XtraForm1.cs
@@ -1,5 +1,6 @@
using DevExpress.XtraEditors;
using DevExpress.XtraLayout;
using DevExpress.XtraPrinting.Export;
using DevExpress.XtraRichEdit.Model;
using Gs.DevApp.ToolBox;
using System;
@@ -7,10 +8,13 @@
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml.Serialization;
namespace Gs.DevApp.DevFrm
{
@@ -22,7 +26,24 @@
            InitializeComponent();
            
        }
        private void button1_Click(object sender, EventArgs e)
        {
            string ddddd = GetLayoutControlXml(layoutControl1);
        }
        public string GetLayoutControlXml(LayoutControl layoutControl)
        {
            string dddd = "";
            layoutControl.SaveLayoutToXml(dddd);
           // layoutControl.SaveLayoutToStream(dddd);
            layoutControl1.RestoreLayoutFromXml("layout.xml");
            return dddd;
           // gcMain.MainView.RestoreLayoutFromXml(fileName);
         //  splitContainerControl1.
        }
    }