The event handler receives an argument of type DevExpress.Xpf.Diagram.DiagramCustomGetSerializableItemPropertiesEventArgs containing data related to this event.
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.
C# |
private void diagram_CustomGetSerializableItemProperties(object sender, DiagramCustomGetSerializableItemPropertiesEventArgs e) {
if (typeof(DiagramContentItem).IsAssignableFrom(e.ItemType))
e.Properties.Remove(e.Properties["Content"]);
}
|
VB |
Private Sub diagram_CustomGetSerializableItemProperties(ByVal sender As Object, ByVal e As DiagramCustomGetSerializableItemPropertiesEventArgs)
If GetType(DiagramContentItem).IsAssignableFrom(e.ItemType) Then
e.Properties.Remove(e.Properties("Content"))
End If
End Sub
|