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

AxisBase.LabelTextFormatter Property

Gets or sets an object that provides custom string representations of axis label values to labels. This is a bindable property.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

#Declaration

C#
public IAxisLabelTextFormatter LabelTextFormatter { get; set; }

#Property Value

Type Description
IAxisLabelTextFormatter

The object that provides custom string representations of axis label values to labels.

#Example

This example illustrates how to use the text formatter to assign a custom text to axis labels:

<dxc:DateTimeAxisX>
    <dxc:DateTimeAxisX.LabelTextFormatter>
            <local:AxisLabelTextFormatter/>
    </dxc:DateTimeAxisX.LabelTextFormatter>
</dxc:DateTimeAxisX>

The code above uses the following classes and members:

Symbol

Description

AxisBase.LabelTextFormatter

Gets or sets an object that provides custom string representations of axis label values to labels. This is a bindable property.

IAxisLabelTextFormatter

An interface that should be implemented by a class that defines custom labels for an axis.

See Also