Table of Contents

Method ToRoman

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

ToRoman(long, bool)

Converts a number to roman numerals. Values outside 1–3999 have no roman form and are returned as digits, which is what Word does.

public static string ToRoman(long value, bool uppercase)

Parameters

value long

The value.

uppercase bool

Whether to use uppercase numerals.

Returns

string

The roman numeral.