TreeList.RestoreLayoutFromXml(String, OptionsLayoutBase) Method
SECURITY NOTE
Deserializing layout settings from untrusted resources may create security issues. Review the following help topic for additional information: Safe Deserialization.
Loads a control’s layout from the specified XML file, using the specified options.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
public virtual void RestoreLayoutFromXml(
string xmlFile,
OptionsLayoutBase options
)
#Parameters
Name | Type | Description |
---|---|---|
xml |
String | A string value specifying the XML file from which control settings are read. |
options | Options |
An Options |
#Remarks
Use the RestoreLayoutFromXml method to load the Tree List control’s layout from an XML file. Control settings must have previously been written to this file via the TreeList.SaveLayoutToXml method call.
Note
When restoring a layout during a form load (for instance, in your Form.