Class ChartMultiLevelLabelBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
ChartMultiLevelLabelBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChartMultiLevelLabelBuilder : ControlBuilder
Constructors
ChartMultiLevelLabelBuilder()
Declaration
public ChartMultiLevelLabelBuilder()
ChartMultiLevelLabelBuilder(List<ChartMultiLevelLabel>)
Declaration
public ChartMultiLevelLabelBuilder(List<ChartMultiLevelLabel> collection)
Parameters
Methods
Add()
Declaration
Alignment(Alignment)
Defines the position of the multi-level labels.
The available options are:
Near: Places the multi-level labels close to the chart elements.
Center: Positions the multi-level labels in the center of the chart elements.
Far: Places the multi-level labels further from the chart elements.
Declaration
public ChartMultiLevelLabelBuilder Alignment(Alignment alignment)
Parameters
Returns
Border(ChartLabelBorder)
The border
property allows customization of the border for multi-level labels.
It includes options to set the color, width, and type of the border.
Declaration
public ChartMultiLevelLabelBuilder Border(ChartLabelBorder border)
Parameters
Returns
Border(Action<ChartLabelBorderBuilder>)
Declaration
public ChartMultiLevelLabelBuilder Border(Action<ChartLabelBorderBuilder> border)
Parameters
Returns
Categories(Action<ChartCategoryBuilder>)
Declaration
public ChartMultiLevelLabelBuilder Categories(Action<ChartCategoryBuilder> categories)
Parameters
Returns
Categories(List<ChartCategory>)
Configures multi-level categories for multi-level labels.
Declaration
public ChartMultiLevelLabelBuilder Categories(List<ChartCategory> categories)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<ChartCategory> |
categories |
|
Returns
Overflow(TextOverflow)
Defines the text overflow behavior for multi-level labels.
The available options are:
Trim: Trims the text that overflows for multi-level labels.
Wrap: Wraps the text that overflows for multi-level labels.
None: No text overflow handling for multi-level labels.
Declaration
public ChartMultiLevelLabelBuilder Overflow(TextOverflow overflow)
Parameters
Returns
TextStyle(ChartFont)
Options to customize the multi-level labels.
Declaration
public ChartMultiLevelLabelBuilder TextStyle(ChartFont textStyle)
Parameters
Returns
TextStyle(Action<ChartFontBuilder>)
Declaration
public ChartMultiLevelLabelBuilder TextStyle(Action<ChartFontBuilder> textStyle)
Parameters
Returns