Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public event AttributeDisplayValueEditEventHandler AttributeDisplayValueEdit

#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