MindFusion.Charting Programmer's Guide

BarChart.InnerLabelAlignment Property

See Also
 





Gets or sets the alignment of labels inside bars.

Namespace: MindFusion.Charting.WebForms
Assembly: MindFusion.Charting.WebForms

 Syntax

C#  Copy Code

public StringAlignment InnerLabelAlignment { get; }

Visual Basic  Copy Code

Public ReadOnly Property InnerLabelAlignment As StringAlignment

 Property Value

One of the .NET StringAlignment Enumeration values.

 Remarks

The property specifies how labels inside bars are aligned. The StringAlignment.Near value indicates the label is aligned to the bottom of the bar. StringAlignment.Far aligns the label to the top of the bar, while with StringAlignment.Center the label is drawn in the center of the bar.

In order to draw labels inside bars, the InnerLabelType property should not be set to LabelType.Empty. Custom labels are set with the InnerLabels property.

Bars can also have labels at the top. Their type is set with TopLabelType.

Default value for the InnerLabelAlignment property is StringAlignment.Center.

 See Also