menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ShapeSelectedEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ShapeSelectedEventArgs

    Specifies the event arguments for shape selected event in maps.

    Inheritance
    System.Object
    MapsBaseEventArgs
    ShapeSelectedEventArgs
    Inherited Members
    MapsBaseEventArgs.Cancel
    Namespace: Syncfusion.Blazor.Maps
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ShapeSelectedEventArgs : MapsBaseEventArgs

    Constructors

    ShapeSelectedEventArgs()

    Declaration
    public ShapeSelectedEventArgs()

    Properties

    Border

    Gets or sets the border settings, including color and width, for the selected map element.

    Declaration
    public MapsBorderSettings Border { get; set; }
    Property Value
    Type Description
    MapsBorderSettings

    An instance of MapsBorderSettings defining the selected element's border.

    Remarks

    Adjust border settings to visually distinguish selected map elements with custom borders.

    Data

    Gets or sets the data source for the currently clicked shape.

    Declaration
    public Dictionary<string, string> Data { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.String>

    A System.Collections.Generic.Dictionary<, > containing the shape's data context.

    Remarks

    Utilize this data to access detailed attributes or responses associated with the click event.

    Fill

    Gets or sets the fill color for the selected shape in maps.

    Declaration
    public string Fill { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the fill color.

    Remarks

    Use the fill color to highlight selected shapes distinctly within the map view.

    Opacity

    Gets or sets the opacity for the selected shape in maps.

    Declaration
    public double Opacity { get; set; }
    Property Value
    Type Description
    System.Double

    A double representing the opacity level.

    Remarks

    Adjust opacity to fine-tune the visual emphasis of the selected shape.

    ShapeData

    Gets or sets the shape data for the currently clicked shape.

    Declaration
    public Dictionary<string, string> ShapeData { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.String>

    A System.Collections.Generic.Dictionary<, > containing data relevant to the clicked shape.

    Remarks

    This data aids in accessing contextually relevant information about the shape involved in user interactions.

    Target

    Gets or sets the id string of the current mouse event's target.

    Declaration
    public string Target { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the target's identifier.

    Remarks

    Useful for knowing which map component or shape was targeted during mouse events.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved