private static CellInfo[,] GetInitializedArray(Word.Table table) { var cellInfos = new CellInfo[table.Rows.Count, table.Columns.Count]; for (int r = 0; r < cellInfos.GetLength(0); r++) { for (int c = 0; c < cellInfos.GetLength(1); c++) { cellInfos[r, c] = new CellInfo(); } } return(cellInfos); }