Class MapsZoomToolbarSettings
Sets and gets the options to customize the border of the zoom toolbar.
Inherited Members
Namespace: Syncfusion.Blazor.Maps
Assembly: Syncfusion.Blazor.dll
Syntax
public class MapsZoomToolbarSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
MapsZoomToolbarSettings()
Declaration
public MapsZoomToolbarSettings()
Properties
BackgroundColor
Gets and sets the background color of the zoom toolbar.
Declaration
[Parameter]
public string BackgroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the background color. Default is "transparent". |
Remarks
This property sets the background color for the toolbar, allowing for style customization.
BorderColor
Gets and sets the color of the border of the zoom toolbar.
Declaration
[Parameter]
public string BorderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the border color. Default is "transparent". |
Remarks
Defines the border color for the zoom toolbar, providing a way to accentuate the toolbar outline.
BorderOpacity
Gets and sets the opacity of the border of the zoom toolbar.
Declaration
[Parameter]
public double BorderOpacity { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double value indicating the border opacity, where 0 is completely transparent and 1 is fully opaque. Default is 1. |
Remarks
Adjusts the transparency level of the toolbar border.
BorderWidth
Gets and sets the thickness of the border of the zoom toolbar.
Declaration
[Parameter]
public double BorderWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double representing the thickness of the toolbar's border. |
Remarks
This property indicates how thick the border for the toolbar will be rendered.
ChildContent
Sets and gets the content of the UI element.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | A RenderFragment representing the template content of the UI element. |
Remarks
This property is used to define custom content within the toolbar area.
HorizontalAlignment
Gets and sets the position type of toolbar when it is placed horizontally.
Declaration
[Parameter]
public Alignment HorizontalAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| Alignment | An Alignment value indicating horizontal alignment. Default is Far. |
Remarks
Determines the horizontal placement of the toolbar within the map container.
Orientation
Gets and sets the orientation of the zoom toolbar.
Declaration
[Parameter]
public Orientation Orientation { get; set; }
Property Value
| Type | Description |
|---|---|
| Orientation | An Orientation value indicating the toolbar's orientation. Default is Horizontal. |
Remarks
Specifies whether the toolbar is oriented horizontally or vertically.
VerticalAlignment
Gets and sets the position type of toolbar when it is placed vertically.
Declaration
[Parameter]
public Alignment VerticalAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| Alignment | An Alignment indicating vertical alignment. Default is Near. |
Remarks
Controls the vertical positioning of the toolbar within the map area.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
Dispose(bool)
Disposes the property values during the destroy of the component that is hold up for the execution of the component.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
OnInitializedAsync()
OnInitializedAsync method is called when the component has received its initial parameters.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | Task representing the asynchronous operation. |
Overrides
OnParametersSetAsync()
OnParametersSetAsync is a lifecycle method that is invoked when the component has received parameters, and the incoming values have been assigned to the properties.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type | Description |
|---|---|
| Task | Task representing the asynchronous operation. |