Back to Devexpress

LegendTitle Class

wpf-devexpress-dot-xpf-dot-charts-ecf159ba.md

latest2.7 KB
Original Source

LegendTitle Class

An individual legend title.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public class LegendTitle :
    TitleBase
vb
Public Class LegendTitle
    Inherits 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.

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

Inheritance

Show 11 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ChartElementBase ChartElement TitleBase LegendTitle

See Also

LegendTitle Members

DevExpress.Xpf.Charts Namespace