Skip to main content
All docs
V25.1
  • PropertyAllowEventArgs Class

    Contains data for PropertySerializing and PropertyDeserializing events.

    Namespace: DevExpress.Utils

    Assembly: DevExpress.Data.v25.1.dll

    NuGet Package: DevExpress.Data

    #Declaration

    public class PropertyAllowEventArgs :
        EventArgs

    #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;
    };
    

    #Inheritance

    Object
    EventArgs
    PropertyAllowEventArgs
    See Also