Ejemplo n.º 1
0
 /// <summary>
 ///     ExcelReference 本地地址 (不包括 Worksheet 名称)
 /// </summary>
 /// <param name="range"></param>
 /// <returns></returns>
 public static string AddressLocal(this ExcelReference range)
 {
     if (range.IsSingleCell())
     {
         return(AddressParser.ToAddress(range.RowFirst, range.ColumnLast));
     }
     return($"{AddressParser.ToAddress(range.RowFirst,range.ColumnFirst)}:{AddressParser.ToAddress(range.RowLast,range.ColumnLast)}");
 }