API Reference
Class
VisualMarkupFenceOptions
Provides shared parsing helpers for Markdown fence attributes and option values.
Inheritance
- Object
- VisualMarkupFenceOptions
Methods
public static String NormalizeKey(String value) #Returns:
StringNormalizes a markup key by keeping only letters and digits and lowercasing them.
Parameters
- value System.String
- The source key.
Returns
The normalized key.
public static Boolean ParseBoolean(String value, String optionName) #Returns:
BooleanParses a boolean option value.
Parameters
- value System.String
- The source value.
- optionName System.String
- The option name used in diagnostics.
Returns
The parsed boolean value.
public static Double ParseDouble(String value, String optionName) #Returns:
DoubleParses a double-precision option value.
Parameters
- value System.String
- The source value.
- optionName System.String
- The option name used in diagnostics.
Returns
The parsed numeric value.
public static TEnum ParseEnum<TEnum>(String value, String optionName) #Returns:
TEnumParses an enum option value using ChartForgeX markup's normalized key matching.
Type Parameters
- TEnum
- The enum type.
Parameters
- value System.String
- The source value.
- optionName System.String
- The option name used in diagnostics.
Returns
The parsed enum value.
public static Int32 ParseInt32(String value, String optionName) #Returns:
Int32Parses an integer option value.
Parameters
- value System.String
- The source value.
- optionName System.String
- The option name used in diagnostics.
Returns
The parsed integer value.
public static Boolean TryGetAttribute(VisualMarkupBlock block, String key, out String value) #Returns:
BooleanFinds a fence attribute using ChartForgeX markup's case-insensitive normalized key matching.
Parameters
- block ChartForgeX.Markup.VisualMarkupBlock
- The visual markup block carrying fence attributes.
- key System.String
- The attribute key to find.
- value System.String
- The attribute value when present.
Returns
True when the attribute is present.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?