Back to Devexpress

AlignedTitle.Alignment Property

corelibraries-devexpress-dot-xtracharts-dot-alignedtitle-b6f85e25.md

latest2.6 KB
Original Source

AlignedTitle.Alignment Property

Gets or sets the title alignment.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[Browsable(false)]
public StringAlignment Alignment { get; set; }
vb
<Browsable(False)>
Public Property Alignment As StringAlignment

Property Value

TypeDescription
StringAlignment

A StringAlignment enumeration value that specifies the title alignment.

|

Remarks

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

csharp
// 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

vb
' Define the alignment of the titles.
chartTitle1.Alignment = StringAlignment.Center
chartTitle2.Alignment = StringAlignment.Near

See Also

AlignedTitle Class

AlignedTitle Members

DevExpress.XtraCharts Namespace