dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
ColorStop Class
Defines a color stop used for creating a continuous color visualization in a
color visual variable.
ArcGIS Maps SDK for JavaScript
public class ColorStop : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 ColorStop
Constructors
ColorStop() Constructor
Parameterless constructor for use as a Razor Component.
public ColorStop();
ColorStop(double, MapColor, string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public ColorStop(double value, dymaptic.GeoBlazor.Core.Model.MapColor color, string? label=null);
Parameters
value
System.Double
Specifies the data value to map to the given color.
ArcGIS Maps SDK for JavaScript
color
MapColor
The Color used to render features with the given value.
ArcGIS Maps SDK for JavaScript
label
System.String
A string value used to label the stop along the color ramp in the Legend.
ArcGIS Maps SDK for JavaScript
Properties
ColorStop.Color Property
The Color used to render features with the given value.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Model.MapColor Color { get; set; }
Property Value
ColorStop.Label Property
A string value used to label the stop along the color ramp in the Legend.
public string? Label { get; set; }
Property Value
ColorStop.Value Property
Specifies the data value to map to the given color.
public System.Nullable<double> Value { get; set; }
Property Value
System.Nullable<System.Double>
Methods
ColorStop.GetColor() Method
Asynchronously retrieve the current value of the Color property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.MapColor?> GetColor();
Returns
System.Threading.Tasks.Task<MapColor>
ColorStop.GetLabel() Method
Asynchronously retrieve the current value of the Label property.
public System.Threading.Tasks.Task<string?> GetLabel();
Returns
System.Threading.Tasks.Task<System.String>
ColorStop.GetValue() Method
Asynchronously retrieve the current value of the Value property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetValue();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
ColorStop.SetColor(MapColor) Method
Asynchronously set the value of the Color property after render.
public System.Threading.Tasks.Task SetColor(dymaptic.GeoBlazor.Core.Model.MapColor value);
Parameters
value
MapColor
The value to set.
Returns
ColorStop.SetLabel(string) Method
Asynchronously set the value of the Label property after render.
public System.Threading.Tasks.Task SetLabel(string? value);
Parameters
value
System.String
The value to set.
Returns
ColorStop.SetValue(Nullable) Method
Asynchronously set the value of the Value property after render.
public System.Threading.Tasks.Task SetValue(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.
Returns
ColorStop.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()