FarPoint.Win.Spread.Model.DefaultSheetDataModel modelScopeCustomNameSupportModel = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(5, 5);
FarPoint.CalcEngine.Expression exp = new FarPoint.CalcEngine.NameExpression("Jeff");
modelScopeCustomNameSupportModel.AddModelScopeCustomName("Joe", exp, ""); //add customName Joe
FarPoint.CalcEngine.Expression exp1 = new FarPoint.CalcEngine.CellExpression(0, 0);
modelScopeCustomNameSupportModel.AddCustomName("Jeff", exp1); //add custom name Jeff
modelScopeCustomNameSupportModel.ModifyModelScopeCustomName("Jeff", "Ken"); //modify name from Jeff to Ken
Dim modelScopeCustomNameSupportModel As New FarPoint.Win.Spread.Model.DefaultSheetDataModel(5, 5)
Dim exp As FarPoint.CalcEngine.Expression = New FarPoint.CalcEngine.NameExpression("Jeff")
modelScopeCustomNameSupportModel.AddModelScopeCustomName("Joe", exp, "")
'add customName Joe
Dim exp1 As FarPoint.CalcEngine.Expression = New FarPoint.CalcEngine.CellExpression(0, 0)
modelScopeCustomNameSupportModel.AddCustomName("Jeff", exp1)
'add custom name Jeff
modelScopeCustomNameSupportModel.ModifyModelScopeCustomName("Jeff", "Ken")
'modify name from Jeff to Ken