PropertyAllowEventArgs Class
In This Article
Contains data for PropertySerializing
and PropertyDeserializing
events.
Namespace: DevExpress.Utils
Assembly: DevExpress.Data.v24.2.dll
NuGet Package: DevExpress.Data
#Declaration
#Remarks
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.
#Example
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;
};
See Also