A newer version of this page is available. Switch to the current version.

DiagramControl.CustomGetSerializableItemProperties Event

Allows you to modify the list of serializable properties of diagram items.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v19.1.dll

Declaration

[DiagramCategory(DiagramCategory.DiagramItems)]
public event EventHandler<DiagramCustomGetSerializableItemPropertiesEventArgs> CustomGetSerializableItemProperties

Event Data

The CustomGetSerializableItemProperties event's data class is DevExpress.XtraDiagram.DiagramCustomGetSerializableItemPropertiesEventArgs.

Remarks

The event’s Properties member provides access to the collection of serializable item properties.

The example below illustrates how to exclude the Content property from serialization.


private void diagramControl1_CustomGetSerializableItemProperties(object sender, DevExpress.XtraDiagram.DiagramCustomGetSerializableItemPropertiesEventArgs e) {
    if (e.ItemType == typeof(DiagramShape))
        e.Properties.Remove(e.Properties["Content"]);
}
See Also