corelibraries-devexpress-dot-xtracharts-dot-alignedtitle-b6f85e25.md
Gets or sets the title alignment.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[Browsable(false)]
public StringAlignment Alignment { get; set; }
<Browsable(False)>
Public Property Alignment As StringAlignment
| Type | Description |
|---|---|
| StringAlignment |
A StringAlignment enumeration value that specifies the title alignment.
|
Note
Use the AlignedTitle.DXAlignment property instead of Alignment to set the title alignment in non-Windows environments.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Alignment property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-chart-create-and-customize-chart-titles/CS/Form1.cs#L26
// Define the alignment of the titles.
chartTitle1.Alignment = StringAlignment.Center;
chartTitle2.Alignment = StringAlignment.Near;
winforms-chart-create-and-customize-chart-titles/VB/Form1.vb#L26
' Define the alignment of the titles.
chartTitle1.Alignment = StringAlignment.Center
chartTitle2.Alignment = StringAlignment.Near
See Also