Back to Devexpress

OptionsCustomizationForm.DefaultRestoreDirectory Property

windowsforms-devexpress-dot-xtralayout-dot-optionscustomizationform-38183d51.md

latest3.0 KB
Original Source

OptionsCustomizationForm.DefaultRestoreDirectory Property

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Gets or sets the default directory for the “Open” dialog that is invoked when a user clicks on the Customization Form‘s Load Layout button.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue("")]
public string DefaultRestoreDirectory { get; set; }
vb
<DefaultValue("")>
Public Property DefaultRestoreDirectory As String

Property Value

TypeDefaultDescription
StringString.Empty

The default directory for the Open dialog.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to DefaultRestoreDirectory
LayoutControl

.OptionsCustomizationForm .DefaultRestoreDirectory

|

Remarks

The Customization Form display two buttons that allow a user to save the current layout to an XML file and then load it later. Clicking these buttons invokes the Save and Open dialogs respectively. Use the OptionsCustomizationForm.DefaultSaveDirectory and DefaultRestoreDirectory properties to specify the directories initially opened by these dialogs.

See Also

DefaultSaveDirectory

Customization Form - Layout Control

OptionsCustomizationForm Class

OptionsCustomizationForm Members

DevExpress.XtraLayout Namespace