alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class SvgImage

    Represents a Blazor component that renders an SVG image element used for rendering images in chart annotations and legends.

    Inheritance
    object
    ComponentBase
    SvgImage
    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()
    Namespace: Syncfusion.Blazor.DataVizCommon
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class SvgImage : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

    Constructors

    SvgImage()

    Declaration
    public SvgImage()

    Properties

    Height

    Gets or sets the height of the rendered image element.

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

    Href

    Gets or sets the URL or data URI of the image to render (maps to the SVG href attribute).

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

    Id

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

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

    PreserveAspectRatio

    Gets or sets the preserveAspectRatio attribute controlling how the image is scaled within its viewport.

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

    Visibility

    Gets or sets the visibility of the image element (e.g., "visible" or "hidden").

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

    Width

    Gets or sets the width of the rendered image element.

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

    X

    Gets or sets the x-axis position of the top-left corner of the image.

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

    Y

    Gets or sets the y-axis position of the top-left corner of the image.

    Declaration
    [Parameter]
    public double Y { 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