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

LegendTitle Class

An individual legend title.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public class LegendTitle :
    TitleBase

The following members return LegendTitle objects:

#Remarks

The LegendTitle class declares properties that define the common appearance settings of a title which is displayed by a particular legend.

Properties exposed by the LegendTitle class allow you to customize common title attributes, such as:

#Example

To display the legend title, assign a newly created LegendTitle object to the LegendBase.Title property. Then, specify the title’s TitleBase.Content property.

<dxc:Legend>
    <dxc:Legend.Title>
        <dxc:LegendTitle Content="Area of Countries"/>
    </dxc:Legend.Title>
</dxc:Legend>
See Also