blazor-devexpress-dot-blazor-522b041d.md
Contains settings for the legend title.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public class DxLegendTitleSettings :
TitleBaseSettings
Use DxLegendTitleSettings objects to customize title settings for the following components:
DxBarGaugeLegendSettingsContains settings for the Bar Gauge‘s legend.
The DxLegendTitleSettings component allows you to specify the following properties at the component level:
TextSpecifies title text.PlaceholderSizeReserves an area for the title and its subtitle.HorizontalAlignment | VerticalAlignmentPosition the title and its subtitle in the legend pane.
In addition to component-level settings, you can also add the following objects to DxLegendTitleSettings markup:
DxFontSettingsContains the element’s font settings.DxMarginSettingsContains settings for the element’s margins.DxLegendSubtitleSettingsContains settings for the legend subtitle.
The following code snippet customizes the legend’s title and subtitle in the DxBarGauge component:
<DxBarGauge Width="30%"
Height="200px"
StartValue="-5"
EndValue="5"
BaseValue="0"
Values="@Values">
<DxBarGaugeLegendSettings Visible="true">
<DxLegendTitleSettings Text="Legend Title"
HorizontalAlignment="HorizontalAlignment.Right">
<DxFontSettings Color="purple" />
<DxMarginSettings Bottom="10" />
<DxLegendSubtitleSettings Text="Legend Subtitle">
<DxFontSettings Color="orange" />
</DxLegendSubtitleSettings>
</DxLegendTitleSettings>
</DxBarGaugeLegendSettings>
</DxBarGauge>
@code {
double[] Values = new double[] { -2.13, 1.48, -3.09, 4.52, 4.9, 3.9 };
}
Object ComponentBase DxSettingsComponent<DevExpress.Blazor.ClientComponents.Internal.TitleSettingsModel> DxComplexSettingsComponent<TitleBaseSettings, DevExpress.Blazor.ClientComponents.Internal.TitleSettingsModel> TextBaseSettings<TitleBaseSettings, DevExpress.Blazor.ClientComponents.Internal.TitleSettingsModel> TitleBaseSettings DxLegendTitleSettings
See Also