您问的应该是:AddCustomName吧。
抱歉,不可以定义数组。
- FarPoint.CalcEngine.Expression ex;
- fpSpread1.ActiveSheet.AddCustomName("Alpha", "Sum(A1,A2)", 1, 1);
- fpSpread1.ActiveSheet.SetFormula(1, 1, "Alpha");
- fpSpread1.ActiveSheet.SetValue(0, 0, 10);
- fpSpread1.ActiveSheet.SetValue(1, 0, 10);
- ex = fpSpread1.ActiveSheet.GetCustomName("Alpha");
- label1.Text = ex.ToString();
复制代码
文档参考路径:FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : AddCustomName Method |