LoadStateFromString Method
Description
Loads the pane layout from a string.
Syntax
Public Sub LoadStateFromString( _
ByVal Node As String _
)
Parameters
- Node: String that will contain the DockingPane layout.
Remarks
Xtreme Docking Panes will save the status, location, and preferences of each individual docking pane. Layouts can easily be saved to a file so each individual user can have their own custom layout.
Example
LoadStateFromString Sample (Visual Basic)
This sample code illustrates how to load your Docking Pane layout from a string saved in a file.
Dim FreeF As Integer, sFile As String, sLayout As String
On Error Resume Next:
sFile = "c:\Layout.000"
FreeF = FreeFile
sLayout = Space(FileLen(sFile))
Open sFile For Binary As #FreeF
Get #FreeF, , sLayout
Close #FreeF
On Error GoTo 0
DockingPaneManager.LoadStateFromString sLayout
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.