Class MapsPolygonHighlightSettings
Gets or sets the properties for customizing the highlighted polygon shapes in Maps.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.Maps
Assembly: Syncfusion.Blazor.dll
Syntax
public class MapsPolygonHighlightSettings : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
MapsPolygonHighlightSettings()
Declaration
public MapsPolygonHighlightSettings()
Properties
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 content to be rendered inside this component. |
Remarks
This property allows for custom UI content definition in the context of polygon highlighting.
Enable
Gets or sets a value indicating whether or not to enable highlight for polygon shapes.
Declaration
[Parameter]
public bool Enable { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A boolean value to enable or disable highlighting. |
Remarks
Toggle the highlighting feature for polygon shapes using this property.
Fill
Gets or sets the color for the highlighted polygon shape.
Declaration
[Parameter]
public string Fill { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string value that specifies the fill color. |
Remarks
Adjust the appearance of highlighted polygon shapes by changing their fill color.
Opacity
Gets or sets the opacity of the highlighted polygon shape.
Declaration
[Parameter]
public double Opacity { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double value between 0 and 1 representing the opacity. |
Remarks
Set the transparency of the highlighted polygon using this property.
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. |