alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class MapsAnnotation

    Defines the options for customizing the annotation of the maps in a Blazor component.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    MapsAnnotation
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Maps
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MapsAnnotation : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    MapsAnnotation()

    Declaration
    public MapsAnnotation()

    Properties

    ChildContent

    Gets or sets the child content UI element within the map annotation.

    Declaration
    [Parameter]
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    RenderFragment

    A RenderFragment representing the content of the UI element.

    Remarks

    This property allows you to define custom UI elements inside the annotation using a render fragment.

    ContentTemplate

    Gets or sets the template content for the annotation in the maps component.

    Declaration
    [Parameter]
    public RenderFragment ContentTemplate { get; set; }
    Property Value
    Type Description
    RenderFragment

    A RenderFragment that represents the annotation content.

    Remarks

    Use this property to define complex content as an annotation using the Blazor render fragment.

    HorizontalAlignment

    Gets or sets the horizontal alignment for the annotation element.

    Declaration
    [Parameter]
    public AnnotationAlignment HorizontalAlignment { get; set; }
    Property Value
    Type Description
    AnnotationAlignment

    An AnnotationAlignment value specifying how the annotation is aligned horizontally.

    Remarks

    Use this property to control the horizontal position of the annotation, like Left, Center, or Right.

    VerticalAlignment

    Gets or sets the vertical alignment for the annotation element.

    Declaration
    [Parameter]
    public AnnotationAlignment VerticalAlignment { get; set; }
    Property Value
    Type Description
    AnnotationAlignment

    An AnnotationAlignment value specifying how the annotation is aligned vertically.

    Remarks

    This property determines whether the annotation is positioned at the top, middle, or bottom of the map container.

    X

    Gets or sets the horizontal position (x-coordinate) of the annotation.

    Declaration
    [Parameter]
    public string X { get; set; }
    Property Value
    Type Description
    string

    A string representing the x-coordinate position.

    Remarks

    The x-coordinate defines the horizontal placement of the annotation within the map component.

    Y

    Gets or sets the vertical position (y-coordinate) of the annotation.

    Declaration
    [Parameter]
    public string Y { get; set; }
    Property Value
    Type Description
    string

    A string representing the y-coordinate position.

    Remarks

    The y-coordinate determines the vertical placement of the annotation within the map component.

    ZIndex

    Gets or sets the z-index of the annotation within the map component.

    Declaration
    [Parameter]
    public string ZIndex { get; set; }
    Property Value
    Type Description
    string

    A string representing the z-index. The default value is "-1".

    Remarks

    The z-index specifies the stack order of the annotation; higher values appear above lower ones.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    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
    OwningComponentBase.Dispose(bool)

    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
    ComponentBase.OnInitializedAsync()

    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.

    Overrides
    ComponentBase.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved