# VisualMarkupFenceOptions

Provides shared parsing helpers for Markdown fence attributes and option values.

 Class  

`ChartForgeX.Markup`

**Namespace**

`ChartForgeX.Markup`

**Assembly**

`ChartForgeX.Markup`

**Source**

[VisualMarkupFenceOptions.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Markup/VisualMarkupFenceOptions.cs#L20)

**Modifiers**

static

Provides shared parsing helpers for Markdown fence attributes and option values.

## Inheritance

- object
- VisualMarkupFenceOptions

 Filter members   

    Show inherited   

 

## Methods

 `public static string NormalizeKey(string value)` [#](#method-normalizekey-string) 

[VisualMarkupFenceOptions.cs:106](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Markup/VisualMarkupFenceOptions.cs#L106)

Normalizes a markup key by keeping only letters and digits and lowercasing them.

Parameters

**value string required**

The source key.

Returns

 `string` The normalized key. 

 `public static bool ParseBoolean(string value, string optionName)` [#](#method-parseboolean-string-string) 

[VisualMarkupFenceOptions.cs:46](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Markup/VisualMarkupFenceOptions.cs#L46)

Parses a boolean option value.

Parameters

**value string required**

The source value.

**optionName string required**

The option name used in diagnostics.

Returns

 `bool` The parsed boolean value. 

 `public static double ParseDouble(string value, string optionName)` [#](#method-parsedouble-string-string) 

[VisualMarkupFenceOptions.cs:80](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Markup/VisualMarkupFenceOptions.cs#L80)

Parses a double-precision option value.

Parameters

**value string required**

The source value.

**optionName string required**

The option name used in diagnostics.

Returns

 `double` The parsed numeric value. 

 `public static TEnum ParseEnum<TEnum>(string value, string optionName)` [#](#method-parseenum-string-string) 

[VisualMarkupFenceOptions.cs:92](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Markup/VisualMarkupFenceOptions.cs#L92)

Parses an enum option value using ChartForgeX markup's normalized key matching.

Type Parameters

**TEnum**

The enum type.

Parameters

**value string required**

The source value.

**optionName string required**

The option name used in diagnostics.

Returns

 `TEnum` The parsed enum value. 

 `public static int ParseInt32(string value, string optionName)` [#](#method-parseint32-string-string) 

[VisualMarkupFenceOptions.cs:69](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Markup/VisualMarkupFenceOptions.cs#L69)

Parses an integer option value.

Parameters

**value string required**

The source value.

**optionName string required**

The option name used in diagnostics.

Returns

 `int` The parsed integer value. 

 `public static bool TryGetAttribute(VisualMarkupBlock block, string key, out string value)` [#](#method-trygetattribute-chartforgex-markup-visualmarkupblock-string-string) 

[VisualMarkupFenceOptions.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Markup/VisualMarkupFenceOptions.cs#L20)

Finds a fence attribute using ChartForgeX markup's case-insensitive normalized key matching.

Parameters

**block ChartForgeX.Markup.VisualMarkupBlock required**

The visual markup block carrying fence attributes.

**key string required**

The attribute key to find.

**value string required**

The attribute value when present.

Returns

 `bool` True when the attribute is present. 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

<!-- PowerForge markdown artifact sha256:D16A8FEB0D2DB104B77C2B8C621EEDE018368EE0CAF828D96C0C1493F91B04F7 -->
