Class SvgImage
Represents a Blazor component that renders an SVG image element used for rendering images in chart annotations and legends.
Inherited Members
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 |