Skip to main content Link Menu Expand (external link) Document Search Copy Copied

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Symbols

SimpleFillSymbol Class

SimpleFillSymbol is used for rendering 2D polygons in either a MapView or a SceneView. It can be filled with a
solid color, or a pattern. In addition, the symbol can have an optional outline, which is defined by a
SimpleLineSymbol.

ArcGIS
  
JS API

</a>

public class SimpleFillSymbol : dymaptic.GeoBlazor.Core.Components.Symbols.FillSymbol,
System.IEquatable<dymaptic.GeoBlazor.Core.Components.Symbols.SimpleFillSymbol>

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Symbol 🡒 FillSymbol 🡒 SimpleFillSymbol

Implements System.IEquatable<SimpleFillSymbol>

Constructors

SimpleFillSymbol() Constructor

Parameterless constructor for using as a razor component

public SimpleFillSymbol();

SimpleFillSymbol(Outline, MapColor, Nullable) Constructor

Constructs a new SimpleFillSymbol in code with parameters

public SimpleFillSymbol(dymaptic.GeoBlazor.Core.Components.Symbols.Outline? outline=null, dymaptic.GeoBlazor.Core.Objects.MapColor? color=null, System.Nullable<dymaptic.GeoBlazor.Core.Components.Symbols.FillStyle> fillStyle=null);

Parameters

outline Outline

The outline of the polygon.

color MapColor

The color of the polygon.

fillStyle System.Nullable<FillStyle>

The fill style.

Properties

SimpleFillSymbol.FillStyle Property

The fill style.

public System.Nullable<dymaptic.GeoBlazor.Core.Components.Symbols.FillStyle> FillStyle { get; set; }

Property Value

System.Nullable<FillStyle>

SimpleFillSymbol.Outline Property

The outline of the polygon.

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

Property Value

Outline

SimpleFillSymbol.Type Property

The symbol type

public override string Type { get; }

Property Value

System.String

Methods

SimpleFillSymbol.Equals(object) Method

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj);

Parameters

obj System.Object

The object to compare with the current object.

Returns

System.Boolean
true if the specified object is equal to the current object; otherwise, false.

SimpleFillSymbol.GetHashCode() Method

Serves as the default hash function.

public override int GetHashCode();

Returns

System.Int32
A hash code for the current object.

SimpleFillSymbol.RegisterChildComponent(MapComponent) Method

Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnAfterRenderAsync(System.Boolean) to “Register” the current component with it’s parent.

public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The calling, child component to register

Returns

System.Threading.Tasks.Task

Exceptions

InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.

SimpleFillSymbol.UnregisterChildComponent(MapComponent) Method

Undoes the “Registration” of a child with its parent.

public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The child to unregister

Returns

System.Threading.Tasks.Task

SimpleFillSymbol.ValidateRequiredChildren() Method

When a MapView is prepared to render, this will check to make sure that all properties with the
RequiredPropertyAttribute are provided.

public override void ValidateRequiredChildren();

Exceptions

MissingRequiredChildElementException
The consumer needs to provide the missing child component

MissingRequiredOptionsChildElementException
The consumer needs to provide ONE of the options of child components

Operators

SimpleFillSymbol.operator ==(SimpleFillSymbol, SimpleFillSymbol) Operator

Compares two SimpleFillSymbols for equality

public static bool operator ==(dymaptic.GeoBlazor.Core.Components.Symbols.SimpleFillSymbol? left, dymaptic.GeoBlazor.Core.Components.Symbols.SimpleFillSymbol? right);

Parameters

left SimpleFillSymbol

right SimpleFillSymbol

Returns

System.Boolean

SimpleFillSymbol.operator !=(SimpleFillSymbol, SimpleFillSymbol) Operator

Compares two SimpleFillSymbols for inequality

public static bool operator !=(dymaptic.GeoBlazor.Core.Components.Symbols.SimpleFillSymbol? left, dymaptic.GeoBlazor.Core.Components.Symbols.SimpleFillSymbol? right);

Parameters

left SimpleFillSymbol

right SimpleFillSymbol

Returns

System.Boolean