GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components

ConversionFormat Class

The Format class represents one of the formats
in the Coordinate Conversion widget.
ArcGIS Maps SDK for JavaScript

public class ConversionFormat : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 ConversionFormat

Constructors

ConversionFormat() Constructor

Parameterless constructor for use as a Razor Component.

public ConversionFormat();

ConversionFormat(ConversionInfo, IReadOnlyList, string, string, string, string, SpatialReference, CoordinateConversionViewModel) Constructor

Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.

public ConversionFormat(dymaptic.GeoBlazor.Pro.Components.ConversionInfo? conversionInfo=null, System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Pro.Components.CoordinateSegment>? coordinateSegments=null, string? currentPattern=null, string? defaultPattern=null, string? label=null, string? name=null, dymaptic.GeoBlazor.Core.Components.SpatialReference? spatialReference=null, dymaptic.GeoBlazor.Pro.Model.CoordinateConversionViewModel? viewModel=null);

Parameters

conversionInfo ConversionInfo

Contains information that describes how this Format should be converted.
default null
ArcGIS Maps SDK for JavaScript

coordinateSegments System.Collections.Generic.IReadOnlyList<CoordinateSegment>

A array of Coordinate Segments.
default null
ArcGIS Maps SDK for JavaScript

currentPattern System.String

A string that serves as a pattern describing how this Format should be displayed.
default null
ArcGIS Maps SDK for JavaScript

defaultPattern System.String

The default pattern describing how this Format should be displayed.
default null
ArcGIS Maps SDK for JavaScript

label System.String

A string that is used to label this Format in the UI.
ArcGIS Maps SDK for JavaScript

name System.String

The name of the coordinate.
default null
ArcGIS Maps SDK for JavaScript

spatialReference dymaptic.GeoBlazor.Core.Components.SpatialReference

The SpatialReference for this format.
ArcGIS Maps SDK for JavaScript

viewModel CoordinateConversionViewModel

The view model of the CoordinateConversion widget that is utilizing this format.
ArcGIS Maps SDK for JavaScript

Properties

ConversionFormat.ConversionInfo Property

Contains information that describes how this Format should be converted.
default null
ArcGIS Maps SDK for JavaScript

public dymaptic.GeoBlazor.Pro.Components.ConversionInfo? ConversionInfo { get; set; }

Property Value

ConversionInfo

ConversionFormat.CoordinateSegments Property

A array of Coordinate Segments.
default null
ArcGIS Maps SDK for JavaScript

public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Pro.Components.CoordinateSegment>? CoordinateSegments { get; set; }

Property Value

System.Collections.Generic.IReadOnlyList<CoordinateSegment>

ConversionFormat.CurrentPattern Property

A string that serves as a pattern describing how this Format should be displayed.
default null
ArcGIS Maps SDK for JavaScript

public string? CurrentPattern { get; set; }

Property Value

System.String

ConversionFormat.DefaultPattern Property

The default pattern describing how this Format should be displayed.
default null
ArcGIS Maps SDK for JavaScript

public string? DefaultPattern { get; set; }

Property Value

System.String

ConversionFormat.Label Property

A string that is used to label this Format in the UI.
ArcGIS Maps SDK for JavaScript

public string? Label { get; set; }

Property Value

System.String

ConversionFormat.Name Property

The name of the coordinate.
default null
ArcGIS Maps SDK for JavaScript

public string? Name { get; set; }

Property Value

System.String

ConversionFormat.SpatialReference Property

The SpatialReference for this format.
ArcGIS Maps SDK for JavaScript

public dymaptic.GeoBlazor.Core.Components.SpatialReference? SpatialReference { get; set; }

Property Value

dymaptic.GeoBlazor.Core.Components.SpatialReference

ConversionFormat.ViewModel Property

The view model of the CoordinateConversion widget that is utilizing this format.
ArcGIS Maps SDK for JavaScript

public dymaptic.GeoBlazor.Pro.Model.CoordinateConversionViewModel? ViewModel { get; set; }

Property Value

CoordinateConversionViewModel

Methods

ConversionFormat.AddToCoordinateSegments(CoordinateSegment[]) Method

Asynchronously adds elements to the CoordinateSegments property.

public System.Threading.Tasks.Task AddToCoordinateSegments(params dymaptic.GeoBlazor.Pro.Components.CoordinateSegment[] values);

Parameters

values CoordinateSegment[]

The elements to add.

Returns

System.Threading.Tasks.Task

ConversionFormat.GetConversionInfo() Method

Asynchronously retrieve the current value of the ConversionInfo property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Components.ConversionInfo?> GetConversionInfo();

Returns

System.Threading.Tasks.Task<ConversionInfo>

ConversionFormat.GetCoordinateSegments() Method

Asynchronously retrieve the current value of the CoordinateSegments property.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Pro.Components.CoordinateSegment>?> GetCoordinateSegments();

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<CoordinateSegment>>

ConversionFormat.GetCurrentPattern() Method

Asynchronously retrieve the current value of the CurrentPattern property.

public System.Threading.Tasks.Task<string?> GetCurrentPattern();

Returns

System.Threading.Tasks.Task<System.String>

ConversionFormat.GetDefaultPattern() Method

Asynchronously retrieve the current value of the DefaultPattern property.

public System.Threading.Tasks.Task<string?> GetDefaultPattern();

Returns

System.Threading.Tasks.Task<System.String>

ConversionFormat.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>

ConversionFormat.GetName() Method

Asynchronously retrieve the current value of the Name property.

public System.Threading.Tasks.Task<string?> GetName();

Returns

System.Threading.Tasks.Task<System.String>

ConversionFormat.GetSpatialReference() Method

Asynchronously retrieve the current value of the SpatialReference property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.SpatialReference?> GetSpatialReference();

Returns

System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.SpatialReference>

ConversionFormat.GetViewModel() Method

Asynchronously retrieve the current value of the ViewModel property.

public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Model.CoordinateConversionViewModel?> GetViewModel();

Returns

System.Threading.Tasks.Task<CoordinateConversionViewModel>

ConversionFormat.RemoveFromCoordinateSegments(CoordinateSegment[]) Method

Asynchronously remove an element from the CoordinateSegments property.

public System.Threading.Tasks.Task RemoveFromCoordinateSegments(params dymaptic.GeoBlazor.Pro.Components.CoordinateSegment[] values);

Parameters

values CoordinateSegment[]

The elements to remove.

Returns

System.Threading.Tasks.Task

ConversionFormat.SetConversionInfo(ConversionInfo) Method

Asynchronously set the value of the ConversionInfo property after render.

public System.Threading.Tasks.Task SetConversionInfo(dymaptic.GeoBlazor.Pro.Components.ConversionInfo? value);

Parameters

value ConversionInfo

The value to set.

Returns

System.Threading.Tasks.Task

ConversionFormat.SetCoordinateSegments(IReadOnlyList) Method

Asynchronously set the value of the CoordinateSegments property after render.

public System.Threading.Tasks.Task SetCoordinateSegments(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Pro.Components.CoordinateSegment>? value);

Parameters

value System.Collections.Generic.IReadOnlyList<CoordinateSegment>

The value to set.

Returns

System.Threading.Tasks.Task

ConversionFormat.SetCurrentPattern(string) Method

Asynchronously set the value of the CurrentPattern property after render.

public System.Threading.Tasks.Task SetCurrentPattern(string? value);

Parameters

value System.String

The value to set.

Returns

System.Threading.Tasks.Task

ConversionFormat.SetDefaultPattern(string) Method

Asynchronously set the value of the DefaultPattern property after render.

public System.Threading.Tasks.Task SetDefaultPattern(string? value);

Parameters

value System.String

The value to set.

Returns

System.Threading.Tasks.Task

ConversionFormat.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

System.Threading.Tasks.Task

ConversionFormat.SetName(string) Method

Asynchronously set the value of the Name property after render.

public System.Threading.Tasks.Task SetName(string? value);

Parameters

value System.String

The value to set.

Returns

System.Threading.Tasks.Task

ConversionFormat.SetSpatialReference(SpatialReference) Method

Asynchronously set the value of the SpatialReference property after render.

public System.Threading.Tasks.Task SetSpatialReference(dymaptic.GeoBlazor.Core.Components.SpatialReference? value);

Parameters

value dymaptic.GeoBlazor.Core.Components.SpatialReference

The value to set.

Returns

System.Threading.Tasks.Task

ConversionFormat.SetViewModel(CoordinateConversionViewModel) Method

Asynchronously set the value of the ViewModel property after render.

public System.Threading.Tasks.Task SetViewModel(dymaptic.GeoBlazor.Pro.Model.CoordinateConversionViewModel? value);

Parameters

value CoordinateConversionViewModel

The value to set.

Returns

System.Threading.Tasks.Task

ConversionFormat.ValidateRequiredGeneratedChildren() Method

Validates source-generated child components.

public override void ValidateRequiredGeneratedChildren();

Implements ValidateRequiredGeneratedChildren()