corelibraries-devexpress-dot-utils-5294a86f.md
Contains data for PropertySerializing and PropertyDeserializing events.
Namespace : DevExpress.Utils
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public class PropertyAllowEventArgs :
EventArgs
Public Class PropertyAllowEventArgs
Inherits EventArgs
PropertyAllowEventArgs is the data class for the following events:
Handle the PropertySerializing and PropertyDeserializing events to include certain settings in the control’s layout when it is saved or restored. The e.PropertyName parameter specifies which property/setting is currently being processed. Use the e.Allow property to allow or disallow property serialization/deresialization.
Read the following topic for information and examples: Save and Restore Layouts of DevExpress Controls.
The following example demonstrates how to avoid serializing certain settings:
treeList.PropertySerializing += (s, e) => {
if(e.Owner is TreeListColumn && e.PropertyName == "Caption")
e.Allow = DefaultBoolean.False;
};
AddHandler treeList.PropertySerializing, Sub(s, e)
If TypeOf e.Owner Is TreeListColumn AndAlso e.PropertyName = "Caption" Then
e.Allow = DefaultBoolean.False
End If
End Sub
Object EventArgs PropertyAllowEventArgs
See Also