还有一种方法是通过 CustomName 方法来获取指定名称的单元格:
FarPoint.Web.Spread.Model.DefaultSheetDataModel d = new FarPoint.Web.Spread.Model.DefaultSheetDataModel();
d.AddCustomName("test", "$B$1", 0, 0);
FarPoint.CalcEngine.CellExpression ce = d.GetCustomName("test") as FarPoint.CalcEngine.CellExpression;
相比 CustomeName ,我还是推荐使用Tag属性。 |