LegendTitle Class
An individual legend title.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.2.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
Related API Members
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:
- the legend title content (TitleBase.Content),
- the alignment of the axis title (TitleBase.HorizontalAlignment),
- the visibility of the axis title (TitleBase.Visible).
- the color and font settings of the title’s text.
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>
Inheritance
See Also