lu
2025-02-28 5b419c5a4fd892b1777e8c5ac584bf2df3cbbb3e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using DevExpress.XtraEditors;
using DevExpress.XtraLayout;
using DevExpress.XtraPrinting.Export;
using DevExpress.XtraRichEdit.Model;
using Gs.DevApp.ToolBox;
using System;
using System.Collections.Generic;
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
{
    public partial class XtraForm1 : DevExpress.XtraEditors.XtraForm
    {
        
        public XtraForm1()
        {
            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.
        }
    }
 
   
}