Class BackgroundStyle
Represents the characteristics of the background of the diagram.
Inheritance
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class BackgroundStyle : OwningComponentBase
Constructors
BackgroundStyle()
Declaration
public BackgroundStyle()
Properties
Background
Defines the background color of diagram.
Declaration
public string Background { get; set; }
Property Value
Type |
---|
System.String |
BackgroundChanged
Specifies the callback to trigger when the color value changes.
Declaration
public EventCallback<string> BackgroundChanged { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<System.String> |
ImageAlign
Defines how to align the background image over the diagram area.
Declaration
public ImageAlignment ImageAlign { get; set; }
Property Value
Type |
---|
ImageAlignment |
ImageAlignChanged
Specifies the callback to trigger when the align value changes.
Declaration
public EventCallback<ImageAlignment> ImageAlignChanged { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<ImageAlignment> |
ImageScale
Defines how the background image should be scaled/stretched.
Declaration
public DiagramScale ImageScale { get; set; }
Property Value
Type |
---|
DiagramScale |
ImageScaleChanged
Specifies the callback to trigger when the scale value changes.
Declaration
public EventCallback<DiagramScale> ImageScaleChanged { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<DiagramScale> |
ImageSource
Defines the source of the background image.
Declaration
public string ImageSource { get; set; }
Property Value
Type |
---|
System.String |
ImageSourceChanged
Specifies the callback to trigger when the Source value changes.
Declaration
public EventCallback<string> ImageSourceChanged { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<System.String> |
Methods
Dispose()
This method releasing all unmanaged resources.
Declaration
public void Dispose()
OnAfterRenderAsync(Boolean)
Method invoked after each time the component has been rendered.
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | firstRender | Set to true for the first time component rendering, otherwise gets false. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
OnParametersSetAsync()
Method invoked when any changes in component state occurs.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | ="Task". |