/// <summary> /// Returns null so nothing is written to the document. /// </summary> /// <param name="context">Holds information about the column current being processed.</param> /// <param name="value">The value that needs written to the document.</param> /// <returns>A null.</returns> public override string Format(IColumnContext context, object value) { if (OnFormatting != null) { value = OnFormatting(context, value); } string result = NullFormatter.FormatNull(context); if (OnFormatted != null) { result = OnFormatted(context, result); } return(result); }
/// <summary> /// Returns null so nothing is written to the document. /// </summary> /// <param name="context">Holds information about the column current being processed.</param> /// <param name="value">The value that needs written to the document.</param> /// <returns>A null.</returns> public override string Format(IColumnContext context, object value) { return(NullFormatter.FormatNull(context)); }