menu

ASP.NET Core - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartMultiLevelLabelBuilder - ASP.NETCore-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartMultiLevelLabelBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    ChartMultiLevelLabelBuilder
    Namespace: Syncfusion.EJ2.Charts
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class ChartMultiLevelLabelBuilder : ControlBuilder

    Constructors

    ChartMultiLevelLabelBuilder()

    Declaration
    public ChartMultiLevelLabelBuilder()

    ChartMultiLevelLabelBuilder(List<ChartMultiLevelLabel>)

    Declaration
    public ChartMultiLevelLabelBuilder(List<ChartMultiLevelLabel> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.List<ChartMultiLevelLabel> collection

    Methods

    Add()

    Declaration
    public void Add()

    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
    Type Name Description
    Alignment alignment
    Returns
    Type
    ChartMultiLevelLabelBuilder

    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
    Type Name Description
    ChartLabelBorder border
    Returns
    Type
    ChartMultiLevelLabelBuilder

    Border(Action<ChartLabelBorderBuilder>)

    Declaration
    public ChartMultiLevelLabelBuilder Border(Action<ChartLabelBorderBuilder> border)
    Parameters
    Type Name Description
    System.Action<ChartLabelBorderBuilder> border
    Returns
    Type
    ChartMultiLevelLabelBuilder

    Categories(Action<ChartCategoryBuilder>)

    Declaration
    public ChartMultiLevelLabelBuilder Categories(Action<ChartCategoryBuilder> categories)
    Parameters
    Type Name Description
    System.Action<ChartCategoryBuilder> categories
    Returns
    Type
    ChartMultiLevelLabelBuilder

    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
    Type
    ChartMultiLevelLabelBuilder

    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
    Type Name Description
    TextOverflow overflow
    Returns
    Type
    ChartMultiLevelLabelBuilder

    TextStyle(ChartFont)

    Options to customize the multi-level labels.

    Declaration
    public ChartMultiLevelLabelBuilder TextStyle(ChartFont textStyle)
    Parameters
    Type Name Description
    ChartFont textStyle
    Returns
    Type
    ChartMultiLevelLabelBuilder

    TextStyle(Action<ChartFontBuilder>)

    Declaration
    public ChartMultiLevelLabelBuilder TextStyle(Action<ChartFontBuilder> textStyle)
    Parameters
    Type Name Description
    System.Action<ChartFontBuilder> textStyle
    Returns
    Type
    ChartMultiLevelLabelBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved