MapItemsLayerBase.AttributeDisplayValueEdit Event

Occurs for each attribute value that is used in a title or tooltip before this title or tooltip is displayed.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

public event AttributeDisplayValueEditEventHandler AttributeDisplayValueEdit
Public Event AttributeDisplayValueEdit As AttributeDisplayValueEditEventHandler

Event Data

The AttributeDisplayValueEdit event's data class is AttributeDisplayValueEditEventArgs. The following properties provide information specific to this event:

Property Description
DisplayValue Gets or sets an attribute display value.
Name Returns the name of an attribute.
PatternFragment Returns the pattern fragment which will be replaced with the AttributeDisplayValueEditEventArgs.DisplayValue.
Value Returns an attribute value.

Remarks

Handle the AttributeDisplayValueEdit event to modify existing item attributes. Use the e.Name property to determine which attribute is processed. Use the e.DisplayValue property to specify a value you want to display.

private void VectorLayer_AttributeDisplayValueEdit(object sender, DevExpress.Map.AttributeDisplayValueEditEventArgs e) {
    if (e.Value == null && e.Name=="NAME"){
        e.DisplayValue = "Unknown";
    }
}
See Also