Skip to main content
A newer version of this page is available. .

DiagramControl.CustomGetSerializableItemProperties Event

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

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v19.1.dll

Declaration

public event EventHandler<DiagramCustomGetSerializableItemPropertiesEventArgs> CustomGetSerializableItemProperties

Event Data

The CustomGetSerializableItemProperties event's data class is DevExpress.Xpf.Diagram.DiagramCustomGetSerializableItemPropertiesEventArgs.

Remarks

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

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

private void diagram_CustomGetSerializableItemProperties(object sender, DiagramCustomGetSerializableItemPropertiesEventArgs e) {
    if (typeof(DiagramContentItem).IsAssignableFrom(e.ItemType))
        e.Properties.Remove(e.Properties["Content"]);
}
See Also