windowsforms-devexpress-dot-xtratreelist-dot-treelist-8dabd33e.md
Allows you to restore certain settings previously saved in the layout.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[DXCategory("Events")]
public event EventHandler<PropertyAllowEventArgs> PropertyDeserializing
<DXCategory("Events")>
Public Event PropertyDeserializing As EventHandler(Of PropertyAllowEventArgs)
The PropertyDeserializing event's data class is PropertyAllowEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Allow | Gets or sets whether to allow property serialization or deserialization. |
| OptionsLayout | Gets layout settings of the control whose layout is being serialized or deserialized. |
| Owner | Gets the control or UI element whose layout settings are being serialized or deserialized. |
| PropertyName | Gets the property name currently being processed. |
Handle the PropertySerializing and PropertyDeserializing events for fine-grained control over layout saving/restoring. The e.PropertyName parameter specifies which property/setting is currently being processed. Use the e.Allow property to allow or disallow property deserialization.
You can also use the OptionsLayout property to specify layout-related settings.
Read the following topic for information and examples: Save and Restore Layouts of DevExpress Controls.
See Also