Table of Contents

Method ApplyGeneralFormat

Namespace
DocWright.Dom.Fields
Assembly
DocWright.Dom.dll

ApplyGeneralFormat(string, string?, CultureInfo)

Applies a * general format to a result. Formatting-only switches (MERGEFORMAT, CHARFORMAT) return the value unchanged — they direct how the result runs are formatted, which is the updater's job, not a text transform.

public static string ApplyGeneralFormat(string value, string? format, CultureInfo culture)

Parameters

value string

The result text.

format string

The switch argument, or null.

culture CultureInfo

The formatting culture.

Returns

string

The transformed text.

Exceptions

ArgumentNullException

value or culture is null.