HtmlForgeX

API Reference

Class

ChartJsFontStyleConverter

Namespace HtmlForgeX
Assembly HtmlForgeX
Base JsonConverter<ChartJsFontStyle>

Converts ChartJsFontStyle enum to lowercase string.

Inheritance

  • JsonConverter<ChartJsFontStyle>
  • ChartJsFontStyleConverter

Constructors

public ChartJsFontStyleConverter() #

Methods

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

Reads a ChartJsFontStyle 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 ChartJsFontStyle.

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

Writes a ChartJsFontStyle value as JSON.

Parameters

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