dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
ColorRampElement Class
Describes the schema of the ColorRampElement used as a legendElement.
ArcGIS Maps SDK for JavaScript
public class ColorRampElement : dymaptic.GeoBlazor.Core.Components.MapComponent,
dymaptic.GeoBlazor.Core.Interfaces.ILegendElement,
dymaptic.GeoBlazor.Core.Interfaces.IMapComponent,
dymaptic.GeoBlazor.Core.Interfaces.ISymbolTableElementType
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 ColorRampElement
Implements ILegendElement, IMapComponent, ISymbolTableElementType
Constructors
ColorRampElement() Constructor
Parameterless constructor for use as a Razor Component.
public ColorRampElement();
ColorRampElement(IReadOnlyList, RampTitle, string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public ColorRampElement(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.ColorRampStop>? infos=null, dymaptic.GeoBlazor.Core.Model.RampTitle? rampTitle=null, string? stringTitle=null);
Parameters
infos
System.Collections.Generic.IReadOnlyList<ColorRampStop>
The individual color stops rendered in the legend that correspond to the color visual variable in the renderer.
ArcGIS Maps SDK for JavaScript
rampTitle
RampTitle
The title of the color ramp as displayed in the legend.
ArcGIS Maps SDK for JavaScript
stringTitle
System.String
The title of the color ramp as displayed in the legend.
ArcGIS Maps SDK for JavaScript
Properties
ColorRampElement.Infos Property
The individual color stops rendered in the legend that correspond to the color visual variable in the renderer.
ArcGIS Maps SDK for JavaScript
public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.ColorRampStop>? Infos { get; set; }
Property Value
System.Collections.Generic.IReadOnlyList<ColorRampStop>
ColorRampElement.RampTitle Property
The title of the color ramp as displayed in the legend.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Model.RampTitle? RampTitle { get; set; }
Property Value
ColorRampElement.StringTitle Property
The title of the color ramp as displayed in the legend.
ArcGIS Maps SDK for JavaScript
public string? StringTitle { get; set; }
Property Value
Methods
ColorRampElement.AddToInfos(ColorRampStop[]) Method
Asynchronously adds elements to the Infos property.
public System.Threading.Tasks.Task AddToInfos(params dymaptic.GeoBlazor.Core.Components.ColorRampStop[] values);
Parameters
values
ColorRampStop[]
The elements to add.
Returns
ColorRampElement.GetInfos() Method
Asynchronously retrieve the current value of the Infos property.
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.ColorRampStop>?> GetInfos();
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<ColorRampStop>>
ColorRampElement.GetRampTitle() Method
Asynchronously retrieve the current value of the RampTitle property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.RampTitle?> GetRampTitle();
Returns
System.Threading.Tasks.Task<RampTitle>
ColorRampElement.GetStringTitle() Method
Asynchronously retrieve the current value of the StringTitle property.
public System.Threading.Tasks.Task<string?> GetStringTitle();
Returns
System.Threading.Tasks.Task<System.String>
ColorRampElement.RemoveFromInfos(ColorRampStop[]) Method
Asynchronously remove an element from the Infos property.
public System.Threading.Tasks.Task RemoveFromInfos(params dymaptic.GeoBlazor.Core.Components.ColorRampStop[] values);
Parameters
values
ColorRampStop[]
The elements to remove.
Returns
ColorRampElement.SetInfos(IReadOnlyList) Method
Asynchronously set the value of the Infos property after render.
public System.Threading.Tasks.Task SetInfos(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.ColorRampStop>? value);
Parameters
value
System.Collections.Generic.IReadOnlyList<ColorRampStop>
The value to set.
Returns
ColorRampElement.SetRampTitle(RampTitle) Method
Asynchronously set the value of the RampTitle property after render.
public System.Threading.Tasks.Task SetRampTitle(dymaptic.GeoBlazor.Core.Model.RampTitle? value);
Parameters
value
RampTitle
The value to set.
Returns
ColorRampElement.SetStringTitle(string) Method
Asynchronously set the value of the StringTitle property after render.
public System.Threading.Tasks.Task SetStringTitle(string? value);
Parameters
value
System.String
The value to set.
Returns
ColorRampElement.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()