Back to Devexpress

OptionsCustomizationForm.DefaultSaveDirectory Property

windowsforms-devexpress-dot-xtralayout-dot-optionscustomizationform-0fb3b356.md

latest3.0 KB
Original Source

OptionsCustomizationForm.DefaultSaveDirectory 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 Save dialog that is opened when clicking on the Customization Form‘s Save Layout button.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
StringString.Empty

A string that specifies the default directory for the Save dialog invoked via the Customization Form.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to DefaultSaveDirectory
LayoutControl

.OptionsCustomizationForm .DefaultSaveDirectory

|

Remarks

The Customization Form provides two buttons that allow an end-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 DefaultSaveDirectory and OptionsCustomizationForm.DefaultRestoreDirectory properties to specify the directories initially opened by these dialogs.

See Also

DefaultRestoreDirectory

Customization Form - Layout Control

OptionsCustomizationForm Class

OptionsCustomizationForm Members

DevExpress.XtraLayout Namespace