Back to Devexpress

AxisLabelStyle Class

mobilecontrols-devexpress-dot-xamarinforms-dot-charts-b9d0c4b8.md

latest2.4 KB
Original Source

AxisLabelStyle Class

Stores the appearance settings of axis labels.

Namespace : DevExpress.XamarinForms.Charts

Assembly : DevExpress.XamarinForms.Charts.dll

NuGet Package : DevExpress.XamarinForms.Charts

Declaration

csharp
public class AxisLabelStyle :
    TextElementStyleBase

The following members return AxisLabelStyle objects:

Example

This example shows how to change axis labels’ font color and size. To do this, assign the AxisLabelStyle object with the specified text appearance settings to the Style property. Use the AxisLabelStyle.TextStyle property to access the TextStyle object and specify this object’s Color and Size properties to set the font color and size of axis labels.

xaml
<dxc:ChartView.AxisY>
    <dxc:NumericAxisY>
        <dxc:NumericAxisY.Label>
          <dxc:AxisLabel>
              <dxc:AxisLabel.Style>
                  <dxc:AxisLabelStyle>
                      <dxc:AxisLabelStyle.TextStyle>
                          <dxc:TextStyle Color="DarkGray" Size="16"/>
                      </dxc:AxisLabelStyle.TextStyle>
                  </dxc:AxisLabelStyle>
              </dxc:AxisLabel.Style>
           </dxc:AxisLabel>
        </dxc:NumericAxisY.Label>
    </dxc:NumericAxisY>
</dxc:ChartView.AxisY>

Implements

INotifyPropertyChanged

Inheritance

Object ChartElement StyleBase TextElementStyleBase AxisLabelStyle

See Also

AxisLabelStyle Members

DevExpress.XamarinForms.Charts Namespace