HtmlForgeX

API Reference

Class

LeafletLegendSettings

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed

Legend control settings for LeafletMap.

Inheritance

  • Object
  • LeafletLegendSettings

Methods

AddItem 2 overloads
public LeafletLegendSettings AddItem(String label, RGBColor color) #
Returns: LeafletLegendSettings

Adds a legend item (label + color).

Parameters

label System.String requiredposition: 0
color HtmlForgeX.TablerColor requiredposition: 1
AddItem(System.String label, HtmlForgeX.RGBColor color) #

Adds a legend item (label + color).

Parameters

label System.String required
color HtmlForgeX.RGBColor required
public LeafletLegendSettings AddItemHex(String label, String colorHex) #
Returns: LeafletLegendSettings
EditorBrowsable(2)

Adds a legend item using a custom hex color.

Parameters

label System.String requiredposition: 0
colorHex System.String requiredposition: 1
public LeafletLegendSettings Clear() #
Returns: LeafletLegendSettings

Clears legend items.

public LeafletMapSettings End() #
Returns: LeafletMapSettings

Return to parent settings builder.

public LeafletLegendSettings Position(LeafletControlPosition position) #
Returns: LeafletLegendSettings

Sets legend position.

Parameters

position HtmlForgeX.LeafletControlPosition requiredposition: 0
public LeafletLegendSettings Title(String title) #
Returns: LeafletLegendSettings

Sets legend title.

Parameters

title System.String requiredposition: 0