ExcelConvert】的更多相关文章

public static class ExcelConvert { #region - 由数字转换为Excel中的列字母 - public static int ToIndex(string columnName) { if (!Regex.IsMatch(columnName.ToUpper(), @"[A-Z]+")) { throw new Exception("invalid parameter"); } ; char[] chars = columnNa…
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Regularexpression_rs; namespace Hooogle { public static class ExcelConvert { #region - 由数字转换为Excel中的列字母 - public static int ToIndex(string columnN…
public static class ExcelConvert { public static int ToExcelIndex(this string columnName) { if (!Regex.IsMatch(columnName.ToUpper(), @"[A-Z]+")) throw new Exception("错误参数"); ; char[] chars = columnName.ToUpper().Trim().ToCharArray(); ;…
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Regularexpression_rs; namespace Hooogle { public static class ExcelConvert { #region - 由数字转换为Excel中的列字母 - public static int ToIndex(string columnN…