Back to Devexpress

OfficeNavigationBar.SaveLayoutToRegistry(String) Method

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-officenavigationbar-dot-savelayouttoregistry-x28-system-dot-string-x29.md

latest2.5 KB
Original Source

OfficeNavigationBar.SaveLayoutToRegistry(String) Method

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.

Saves the OfficeNavigationBar layout to the registry.

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual bool SaveLayoutToRegistry(
    string path
)
vb
Public Overridable Function SaveLayoutToRegistry(
    path As String
) As Boolean

Parameters

NameTypeDescription
pathString

A registry path to the OfficeNavigationBar layout.

|

Returns

TypeDescription
Boolean

true if the layout was saved successfully; otherwise, false.

|

Remarks

Call the RestoreLayoutFromRegistry(String) to restore the saved layout.

You can also save the layout to a stream or to an XML file.

See Also

Save and Restore Layouts of DevExpress controls

OfficeNavigationBar Class

OfficeNavigationBar Members

DevExpress.XtraBars.Navigation Namespace