Class GridCrawler5
Builds a reusable layout grid from a Word table using both visual and textual merge inference.
Assembly: CoverageKiller2.dll
Syntax
public class GridCrawler5
Properties
ColumnCount
Gets the number of visual columns in the final layout grid.
Declaration
public int ColumnCount { get; }
Property Value
Grid
Gets the completed visual layout grid.
Declaration
public Base1JaggedList<GridCell5> Grid { get; }
Property Value
RowCount
Gets the number of visual rows in the final layout grid.
Declaration
public int RowCount { get; }
Property Value
Methods
AnalyzeTableRecursively(Table, int)
Declaration
public Base1JaggedList<GridCell5> AnalyzeTableRecursively(Table table = null, int rowOffset = 0)
Parameters
Type |
Name |
Description |
Table |
table |
|
int |
rowOffset |
|
Returns
BuildFastGridFromTable(Table, int)
Declaration
public Base1JaggedList<GridCell5> BuildFastGridFromTable(Table table, int rowOffset = 0)
Parameters
Type |
Name |
Description |
Table |
table |
|
int |
rowOffset |
|
Returns
BuildSlowGridFromTable(Table, int)
Declaration
public Base1JaggedList<GridCell5> BuildSlowGridFromTable(Table table, int rowOffset = 0)
Parameters
Type |
Name |
Description |
Table |
table |
|
int |
rowOffset |
|
Returns
DumpGrid(Base1JaggedList<GridCell5>, string)
Returns a labeled text representation of the grid.
Declaration
public static string DumpGrid(Base1JaggedList<GridCell5> grid, string message = null)
Parameters
Returns
DumpGrid(Base1JaggedList<Cell>, string)
Dumps a string representation of the grid for debugging or visualization.
Declaration
public static string DumpGrid(Base1JaggedList<Cell> grid, string message = null)
Parameters
Returns
Type |
Description |
string |
A formatted string showing grid positions and cell types.
|
DumpGrid<T>(Base1JaggedList<T>, string)
Returns a labeled text representation of a Base1JaggedList of any type.
Declaration
public static string DumpGrid<T>(Base1JaggedList<T> grid, string message = null)
Parameters
Returns
Type |
Description |
string |
A formatted string representation of the grid.
|
Type Parameters
Name |
Description |
T |
The element type of the grid.
|
DumpList(Base1List<string>, string)
Dumps the raw contents of a Base1List<string>, each entry as-is, separated by newlines.
Declaration
public static string DumpList(Base1List<string> textList, string message)
Parameters
Returns
Type |
Description |
string |
The concatenated raw text of the list.
|
FlattenTableText(string)
Declaration
public static string FlattenTableText(string tableText)
Parameters
Type |
Name |
Description |
string |
tableText |
|
Returns
GetMasterGrid(Table)
Retrieves a grid of master GridCell5s from the CKTable.
Declaration
public Base1JaggedList<Cell> GetMasterGrid(Table COMTable = null)
Parameters
Type |
Name |
Description |
Table |
COMTable |
|
Returns
MergeGrids(Base1JaggedList<GridCell5>, Base1JaggedList<GridCell5>)
Declaration
public Base1JaggedList<GridCell5> MergeGrids(Base1JaggedList<GridCell5> g1, Base1JaggedList<GridCell5> g2)
Parameters
Returns
PrepareTable(Table)
Clones the given Word table into a shadow workspace and formats it for grid-based layout visualization.
Declaration
public Table PrepareTable(Table COMTable = null)
Parameters
Type |
Name |
Description |
Table |
COMTable |
|
Returns
Type |
Description |
Table |
A ShadowWorkspace containing the formatted cloned table and master cell grid.
|
SplitTableAtRow(Table)
Declaration
public static (Table first, Table second, int splitRow) SplitTableAtRow(Table original)
Parameters
Type |
Name |
Description |
Table |
original |
|
Returns
SplitWordTableTextIntoRows(string)
Declaration
public static Base1List<string> SplitWordTableTextIntoRows(string rawText)
Parameters
Type |
Name |
Description |
string |
rawText |
|
Returns
Extension Methods