/// <summary> /// Prepends the formatting. /// </summary> /// <param name="option">The option.</param> /// <param name="relativeOrder">The relative order.</param> /// <returns>A prepending string for the prefixing option.</returns> public static string PrependFormatting(ElementFormatOption option, int relativeOrder) { switch (option) { case ElementFormatOption.Numbered: return(relativeOrder + ". "); case ElementFormatOption.Lettered: return(ConvertNumberToCharacter(relativeOrder) + ". "); case ElementFormatOption.Roman: return(ConvertNumberToRomanNumeral(relativeOrder) + ". "); default: return(string.Empty); } }
/// <summary> /// Prepends the formatting. /// </summary> /// <param name="option">The option.</param> /// <param name="relativeOrder">The relative order.</param> /// <returns>A prepending string for the prefixing option.</returns> public static string PrependFormatting(ElementFormatOption option, int relativeOrder) { switch (option) { case ElementFormatOption.Numbered: return relativeOrder + ". "; case ElementFormatOption.Lettered: return ConvertNumberToCharacter(relativeOrder) + ". "; case ElementFormatOption.Roman: return ConvertNumberToRomanNumeral(relativeOrder) + ". "; default: return string.Empty; } }