diff --git a/drafts/【MiniExcel】AutoFillCenterEmptyRowOrCellLogic.linq b/drafts/【MiniExcel】AutoFillCenterEmptyRowOrCellLogic.linq
deleted file mode 100644
index 3dfebaa..0000000
--- a/drafts/【MiniExcel】AutoFillCenterEmptyRowOrCellLogic.linq
+++ /dev/null
@@ -1,145 +0,0 @@
-
- AngleSharp
- Dapper
- DocumentFormat.OpenXml
- Newtonsoft.Json
- System.Data.SqlClient
- Dapper
- Newtonsoft.Json
- System.Data.SqlClient
- System.IO.Compression
- System.Net.Http
- System.Threading.Tasks
-
-
-void Main()
-{
- var source = new Dictionary>()
- {
- {0,new Dictionary(){{0,0},{3,3}}},
- {3,new Dictionary(){{2,2}}},
- };
- Console.WriteLine(JsonConvert.SerializeObject(source, Newtonsoft.Json.Formatting.Indented));
- var rows = GetRows(@"D:\git\MiniExcel\samples\xlsx\TestCenterEmptyRow\TestCenterEmptyRow.xlsx").ToList();
- Console.WriteLine(rows);
-}
-
-private static string ConvertToString(ZipArchiveEntry entry)
-{
- if (entry == null)
- return null;
- using (var eStream = entry.Open())
- using (var reader = new StreamReader(eStream))
- return reader.ReadToEnd();
-}
-
-internal static class ExcelXName
-{
- internal readonly static XNamespace ExcelNamespace = XNamespace.Get("http://schemas.openxmlformats.org/spreadsheetml/2006/main");
- internal readonly static XNamespace ExcelRelationshipsNamepace = XNamespace.Get("http://schemas.openxmlformats.org/officeDocument/2006/relationships");
- internal readonly static XName Row;
- internal readonly static XName R;
- internal readonly static XName V;
- internal readonly static XName T;
- internal readonly static XName C;
- internal readonly static XName Dimension;
- static ExcelXName()
- {
- Row = XNamespace.Get("http://schemas.openxmlformats.org/spreadsheetml/2006/main") + "row";
- R = XNamespace.Get("http://schemas.openxmlformats.org/spreadsheetml/2006/main") + "r";
- V = XNamespace.Get("http://schemas.openxmlformats.org/spreadsheetml/2006/main") + "v";
- T = XNamespace.Get("http://schemas.openxmlformats.org/spreadsheetml/2006/main") + "t";
- C = XNamespace.Get("http://schemas.openxmlformats.org/spreadsheetml/2006/main") + "c";
- Dimension = XNamespace.Get("http://schemas.openxmlformats.org/spreadsheetml/2006/main") + "dimension";
- }
-}
-
-IEnumerable> GetRows(string path)
-{
- using (FileStream stream = new FileStream(path, FileMode.Open))
- using (ZipArchive archive = new ZipArchive(stream, ZipArchiveMode.Read, false, UTF8Encoding.UTF8))
- {
- var firstSheetEntry = archive.Entries.First(w => w.FullName.StartsWith("xl/worksheets/", StringComparison.OrdinalIgnoreCase));
- var xml = ConvertToString(firstSheetEntry);
- var xl = XElement.Parse(xml);
-
- var maxRowIndex = 3;
- var maxColumnIndex = 3;
-
- // first get sheet row count & column count
-
- var rowIndex = 0;
- foreach (var row in xl.Descendants(ExcelXName.Row))
- {
- {
- var r = row.Attribute("r")?.Value?.ToString();
-
- var rIndex = int.MinValue;
- if (int.TryParse(r, out var _rowIndex))
- rIndex = _rowIndex - 1; // The row attribute is 1 - based
- }
-
-
- var cells = new List