alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class SvgLine

    Represents a Blazor component that renders an SVG line element used for axis lines, grid lines, and crosshairs in charts.

    Inheritance
    object
    ComponentBase
    SvgClass
    SvgLine
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    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()
    SvgClass.Class
    Namespace: Syncfusion.Blazor.DataVizCommon
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SvgLine : SvgClass, IComponent, IHandleEvent, IHandleAfterRender

    Constructors

    SvgLine()

    Declaration
    public SvgLine()

    Properties

    AccessibilityText

    Gets or sets the accessibility text used as an ARIA label for screen readers.

    Declaration
    [Parameter]
    public string AccessibilityText { get; set; }
    Property Value
    Type
    string

    Id

    Gets or sets the unique identifier for the SVG line element.

    Declaration
    [Parameter]
    public override string Id { get; set; }
    Property Value
    Type
    string
    Overrides
    SvgClass.Id

    Opacity

    Gets or sets the opacity of the line, ranging from 0 (transparent) to 1 (opaque).

    Declaration
    [Parameter]
    public double Opacity { get; set; }
    Property Value
    Type
    double

    Stroke

    Gets or sets the stroke color of the line.

    Declaration
    [Parameter]
    public string Stroke { get; set; }
    Property Value
    Type
    string

    StrokeWidth

    Gets or sets the stroke width of the line.

    Declaration
    [Parameter]
    public double StrokeWidth { get; set; }
    Property Value
    Type
    double

    X1

    Gets or sets the x-axis coordinate of the starting point of the line.

    Declaration
    [Parameter]
    public double X1 { get; set; }
    Property Value
    Type
    double

    X2

    Gets or sets the x-axis coordinate of the ending point of the line.

    Declaration
    [Parameter]
    public double X2 { get; set; }
    Property Value
    Type
    double

    Y1

    Gets or sets the y-axis coordinate of the starting point of the line.

    Declaration
    [Parameter]
    public double Y1 { get; set; }
    Property Value
    Type
    double

    Y2

    Gets or sets the y-axis coordinate of the ending point of the line.

    Declaration
    [Parameter]
    public double Y2 { get; set; }
    Property Value
    Type
    double

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Implements

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