Show / Hide Table of Contents

Class GridCrawler5

Builds a reusable layout grid from a Word table using both visual and textual merge inference.

Inheritance
object
GridCrawler5
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: CoverageKiller2.DOM.Tables
Assembly: CoverageKiller2.dll
Syntax
public class GridCrawler5
Remarks

THIS CLASS IS NOT TO INCLUDE ANY CK.DOM references. Version: CK2.00.01.0034

Properties

ColumnCount

Gets the number of visual columns in the final layout grid.

Declaration
public int ColumnCount { get; }
Property Value
Type Description
int

Grid

Gets the completed visual layout grid.

Declaration
public Base1JaggedList<GridCell5> Grid { get; }
Property Value
Type Description
Base1JaggedList<GridCell5>

RowCount

Gets the number of visual rows in the final layout grid.

Declaration
public int RowCount { get; }
Property Value
Type Description
int

Methods

AnalyzeTableRecursively(Table, int)

Declaration
public Base1JaggedList<GridCell5> AnalyzeTableRecursively(Table table = null, int rowOffset = 0)
Parameters
Type Name Description
Table table
int rowOffset
Returns
Type Description
Base1JaggedList<GridCell5>

BuildFastGridFromTable(Table, int)

Declaration
public Base1JaggedList<GridCell5> BuildFastGridFromTable(Table table, int rowOffset = 0)
Parameters
Type Name Description
Table table
int rowOffset
Returns
Type Description
Base1JaggedList<GridCell5>

BuildSlowGridFromTable(Table, int)

Declaration
public Base1JaggedList<GridCell5> BuildSlowGridFromTable(Table table, int rowOffset = 0)
Parameters
Type Name Description
Table table
int rowOffset
Returns
Type Description
Base1JaggedList<GridCell5>

DumpGrid(Base1JaggedList<GridCell5>, string)

Returns a labeled text representation of the grid.

Declaration
public static string DumpGrid(Base1JaggedList<GridCell5> grid, string message = null)
Parameters
Type Name Description
Base1JaggedList<GridCell5> grid
string message
Returns
Type Description
string

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
Type Name Description
Base1JaggedList<Cell> grid

The jagged grid structure of GridCell2 instances.

string message
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
Type Name Description
Base1JaggedList<T> grid

The grid to dump.

string message

Optional label message.

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
Type Name Description
Base1List<string> textList
string message
Returns
Type Description
string

The concatenated raw text of the list.

Remarks

Version: CK2.00.01.0036

FlattenTableText(string)

Declaration
public static string FlattenTableText(string tableText)
Parameters
Type Name Description
string tableText
Returns
Type Description
string

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
Type Description
Base1JaggedList<Cell>

MergeGrids(Base1JaggedList<GridCell5>, Base1JaggedList<GridCell5>)

Declaration
public Base1JaggedList<GridCell5> MergeGrids(Base1JaggedList<GridCell5> g1, Base1JaggedList<GridCell5> g2)
Parameters
Type Name Description
Base1JaggedList<GridCell5> g1
Base1JaggedList<GridCell5> g2
Returns
Type Description
Base1JaggedList<GridCell5>

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.

Remarks

Version: CK2.00.01.0015

SplitTableAtRow(Table)

Declaration
public static (Table first, Table second, int splitRow) SplitTableAtRow(Table original)
Parameters
Type Name Description
Table original
Returns
Type Description
(Table first, Table second, int splitRow)

SplitWordTableTextIntoRows(string)

Declaration
public static Base1List<string> SplitWordTableTextIntoRows(string rawText)
Parameters
Type Name Description
string rawText
Returns
Type Description
Base1List<string>

Extension Methods

PingService.PingPong<T>(T, string)
PingService.PingPong<T>(T, string, string)
PingService.PingPong<T, TResult>(T, Func<TResult>, string, string)
PingService.Ping<T>(T, string)
PingService.Ping<T>(T, string, string)
PingService.Ping<T>(T, Type[], string)
PingService.Pong<T>(T, string)
PingService.Pong<T>(T, string, string)
PingService.Pong<T>(T, Type, string)
PingService.Pong<T>(T, Type[], string)
PingService.Pong<T, TResult>(T, Func<TResult>, string, string)
In this article
Back to top Generated by DocFX