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

DiagramControl.CustomGetEditableItemProperties Event

Allows you to modify the list of diagram item properties that can be edited by end-users in the Properties Panel.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v18.2.dll

Declaration

public event EventHandler<DiagramCustomGetEditableItemPropertiesEventArgs> CustomGetEditableItemProperties

Event Data

The CustomGetEditableItemProperties event's data class is DevExpress.Xpf.Diagram.DiagramCustomGetEditableItemPropertiesEventArgs.

Remarks

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

See the example below.

private void diagramControl_CustomGetEditableItemProperties(object sender, DiagramCustomGetEditableItemPropertiesEventArgs e) {
    if (e.Item is DiagramShapeEx) {
        e.Properties.Add(TypeDescriptor.GetProperties(typeof(DiagramShapeEx))["Description"]);
    }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomGetEditableItemProperties event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also