Class MapsTitleSettings
Sets and gets the title to be displayed for maps.
Inheritance
Namespace: Syncfusion.Blazor.Maps
Assembly: Syncfusion.Blazor.dll
Syntax
public class MapsTitleSettings : OwningComponentBase
Constructors
MapsTitleSettings()
Declaration
public MapsTitleSettings()
Properties
Alignment
Gets or sets the alignment for the text in the title for the maps.
Declaration
public Alignment Alignment { get; set; }
Property Value
Type | Description |
---|---|
Alignment | An Alignment enumeration value that specifies the alignment of the title text. The default is Center. |
Remarks
Use this property to position the title text within the map.
ChildContent
Gets or sets the content of the UI element.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment | A Microsoft.AspNetCore.Components.RenderFragment that represents additional UI content for the maps title. |
Remarks
This property allows defining custom content inside the title settings.
Description
Gets or sets the description of the title in maps.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string providing additional description or information about the map title. |
Remarks
This property is useful for accessibility features or when more context is needed for the map title.
Text
Gets or sets the text for the title in maps.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string specifying the main text content of the map title. |
Remarks
This is the main title text that appears at the top of the map.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
Dispose(Boolean)
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 |
---|---|---|
System.Boolean | disposing |
OnInitializedAsync()
OnInitializedAsync method is called when the component has received its initial parameters.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |
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 |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |