alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ChartStriplineTextStyle

    Specifies the configuration of text style for the stripline text.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    ChartSubComponent
    ChartDefaultFont
    ChartStriplineTextStyle
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ChartDefaultFont.FontStyle
    ChartDefaultFont.Opacity
    ChartDefaultFont.TextAlignment
    ChartDefaultFont.TextOverflow
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChartStriplineTextStyle : ChartDefaultFont, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    ChartStriplineTextStyle()

    Declaration
    public ChartStriplineTextStyle()

    Properties

    Color

    Gets or sets the font color for the stripline text.

    Declaration
    [Parameter]
    public override string Color { get; set; }
    Property Value
    Type Description
    string

    A string representing the font color for the stripline text. The default font color is determined by the chart's theme. By default, the theme is set to Material with a font color of rgba(158, 158, 158, 1).

    Overrides
    ChartDefaultFont.Color
    Remarks

    Use valid hex or rgba CSS color strings for the color value.

    Examples
    // This example demonstrates how to customize the text color of a stripline label on the primary Y-axis of a Chart.
    <SfChart>
        <ChartPrimaryYAxis>
            <ChartStriplines>
                <ChartStripline Start="18" End="25" Text="Strip-Line">
                    <ChartStriplineTextStyle Color="blue" />
                </ChartStripline>
            </ChartStriplines>
        </ChartPrimaryYAxis>
        <ChartSeriesCollection>
            <ChartSeries DataSource="@Data" XName="XValue" YName="YValue" />
        </ChartSeriesCollection>
    </SfChart>

    FontFamily

    Gets or sets the font family for the stripline text.

    Declaration
    [Parameter]
    public override string FontFamily { get; set; }
    Property Value
    Type Description
    string

    A string representing the font family for the stripline text. The default font family is determined by the chart's theme. By default, the theme is set to Material with a font family of Roboto.

    Overrides
    ChartDefaultFont.FontFamily
    Remarks

    Changing the font family can help in achieving a specific visual style or maintain consistency with other interface elements.

    Examples
    // This example demonstrates how to customize the font family of a stripline label on the primary Y-axis of a Chart.
    <SfChart>
        <ChartPrimaryYAxis>
            <ChartStriplines>
                <ChartStripline Start="18" End="25" Text="Strip-Line">
                    <ChartStriplineTextStyle FontFamily="italic" />
                </ChartStripline>
            </ChartStriplines>
        </ChartPrimaryYAxis>
        <ChartSeriesCollection>
            <ChartSeries DataSource="@Data" XName="XValue" YName="YValue" />
        </ChartSeriesCollection>
    </SfChart>

    FontWeight

    Gets or sets the font weight for the stripline text.

    Declaration
    [Parameter]
    public override string FontWeight { get; set; }
    Property Value
    Type Description
    string

    A string representing the font weight for the stripline text. The default font weight is determined by the chart's theme. By default, the theme is set to Material with a font weight of 400.

    Overrides
    ChartDefaultFont.FontWeight
    Remarks

    Adjusting the font weight can help emphasize or de-emphasize the strip line text by making it bolder or lighter.

    Examples
    // This example demonstrates how to customize the font weight of a stripline label on the primary Y-axis of a Chart.
    <SfChart>
        <ChartPrimaryYAxis>
            <ChartStriplines>
                <ChartStripline Start="18" End="25" Text="Strip-Line">
                    <ChartStriplineTextStyle FontWeight="700" />
                </ChartStripline>
            </ChartStriplines>
        </ChartPrimaryYAxis>
        <ChartSeriesCollection>
            <ChartSeries DataSource="@Data" XName="XValue" YName="YValue" />
        </ChartSeriesCollection>
    </SfChart>

    Size

    Gets or sets the font size for the stripline text.

    Declaration
    [Parameter]
    public override string Size { get; set; }
    Property Value
    Type Description
    string

    A string representing the font size for the stripline text. The default font size for the stripline text is 12px.

    Overrides
    ChartDefaultFont.Size
    Remarks

    The font size can be adjusted to ensure that the strip line text is readable and fits well within the visual design of the chart.

    Examples
    // This example demonstrates how to customize the text size of a stripline label on the primary Y-axis of a Chart.
    <SfChart>
        <ChartPrimaryYAxis>
            <ChartStriplines>
                <ChartStripline Start="18" End="25" Text="Strip-Line">
                    <ChartStriplineTextStyle Size="16px"></ChartStriplineTextStyle>
                </ChartStripline>
            </ChartStriplines>
        </ChartPrimaryYAxis>
        <ChartSeriesCollection>
            <ChartSeries DataSource="@Data" XName="XValue" YName="YValue" />
        </ChartSeriesCollection>
    </SfChart>

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved