PropertyAllowEventArgs.PropertyName Property
Gets the property name currently being processed.
Namespace: DevExpress.Utils
Assembly: DevExpress.Data.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
String | The property name. |
Remarks
Use the PropertyName
property to identify which property/setting is currently being processed. Use the Allow option to allow or disallow property serialization or deserialization.
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