Click or drag to resize

NiceFormatterTablizeAdoTable Method

Converts DataTable rows into a mock display table of rows and columns formatted using ASCII box characters. For more information see the Tablize(IEnumerableObject, NullableInt32, NullableInt32) and TablizeObj(Object, NullableInt32) methods.

Namespace: Orthogonal.Common.Basic
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-15 18:00 GMT+10.f27da1471008deaf16b803c17e24a5955690aef1
Syntax
C#
public static IEnumerable<string> TablizeAdoTable(
	DataTable table,
	int? maxColLen = null,
	int? maxRows = null
)

Parameters

table  DataTable
The DataTable to format and display.
maxColLen  NullableInt32  (Optional)
Optional maximum length of text in each mock column.
maxRows  NullableInt32  (Optional)
Optional maximum number of mock rows to process.

Return Value

IEnumerableString
An enumerable set of text lines that display as a mock table using box ASCII characters. Control characters in the displayed values are replaced with a small box U+25AB.
See Also