HtmlForgeX

API Reference

Class

ChartJsInteractionModeConverter

Namespace HtmlForgeX
Assembly HtmlForgeX
Base JsonConverter<ChartJsInteractionMode>

Converts ChartJsInteractionMode enum to lowercase string.

Inheritance

  • JsonConverter<ChartJsInteractionMode>
  • ChartJsInteractionModeConverter

Constructors

public ChartJsInteractionModeConverter() #

Methods

public override ChartJsInteractionMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #
Returns: ChartJsInteractionMode

Reads a ChartJsInteractionMode value from JSON.

Parameters

reader System.Text.Json.Utf8JsonReader@ requiredposition: 0
The JSON reader.
typeToConvert System.Type requiredposition: 1
The target type to convert.
options System.Text.Json.JsonSerializerOptions requiredposition: 2
The serializer options.

Returns

The parsed ChartJsInteractionMode.

public override Void Write(Utf8JsonWriter writer, ChartJsInteractionMode value, JsonSerializerOptions options) #
Returns: Void

Writes a ChartJsInteractionMode value as JSON.

Parameters

writer System.Text.Json.Utf8JsonWriter requiredposition: 0
The JSON writer.
value HtmlForgeX.ChartJsInteractionMode requiredposition: 1
The value to write.
options System.Text.Json.JsonSerializerOptions requiredposition: 2
The serializer options.