C# Class WeifenLuo.WinFormsUI.Docking.DockPanel.Persistor

显示文件 Open project: dockpanelsuite/dockpanelsuite

Public Methods

Method Description
LoadFromXml ( DockPanel dockPanel, Stream stream, DeserializeDockContent deserializeContent, bool closeStream ) : void
LoadFromXml ( DockPanel dockPanel, string fileName, DeserializeDockContent deserializeContent ) : void
SaveAsXml ( DockPanel dockPanel, Stream stream, Encoding encoding ) : void
SaveAsXml ( DockPanel dockPanel, Stream stream, Encoding encoding, bool upstream ) : void
SaveAsXml ( DockPanel dockPanel, string fileName ) : void
SaveAsXml ( DockPanel dockPanel, string fileName, Encoding encoding ) : void

Private Methods

Method Description
IsFormatVersionValid ( string formatVersion ) : bool
LoadContents ( XmlTextReader xmlIn ) : ContentStruct[]
LoadDockWindows ( XmlTextReader xmlIn, DockPanel dockPanel ) : DockWindowStruct[]
LoadFloatWindows ( XmlTextReader xmlIn ) : FloatWindowStruct[]
LoadPanes ( XmlTextReader xmlIn ) : PaneStruct[]
MoveToNextElement ( XmlTextReader xmlIn ) : bool

Method Details

LoadFromXml() public static method

public static LoadFromXml ( DockPanel dockPanel, Stream stream, DeserializeDockContent deserializeContent, bool closeStream ) : void
dockPanel DockPanel
stream Stream
deserializeContent DeserializeDockContent
closeStream bool
return void

LoadFromXml() public static method

public static LoadFromXml ( DockPanel dockPanel, string fileName, DeserializeDockContent deserializeContent ) : void
dockPanel DockPanel
fileName string
deserializeContent DeserializeDockContent
return void

SaveAsXml() public static method

public static SaveAsXml ( DockPanel dockPanel, Stream stream, Encoding encoding ) : void
dockPanel DockPanel
stream Stream
encoding System.Text.Encoding
return void

SaveAsXml() public static method

public static SaveAsXml ( DockPanel dockPanel, Stream stream, Encoding encoding, bool upstream ) : void
dockPanel DockPanel
stream Stream
encoding System.Text.Encoding
upstream bool
return void

SaveAsXml() public static method

public static SaveAsXml ( DockPanel dockPanel, string fileName ) : void
dockPanel DockPanel
fileName string
return void

SaveAsXml() public static method

public static SaveAsXml ( DockPanel dockPanel, string fileName, Encoding encoding ) : void
dockPanel DockPanel
fileName string
encoding System.Text.Encoding
return void