FarPoint.Web.Spread.Model 名前空間 > ICustomNameSupport インタフェース > AddCustomName メソッド : AddCustomName(String,Expression) メソッド |
'Declaration
Overloads Sub AddCustomName( _ ByVal name As String, _ ByVal value As Expression _ )
void AddCustomName( string name, Expression value )
FarPoint.Web.Spread.Model.ICustomNameSupport cns; cns = (FarPoint.Web.Spread.Model.ICustomNameSupport)FpSpread1.ActiveSheetView.DataModel; cns.AddCustomName("ALPHA", new FarPoint.CalcEngine.DoubleExpression(20)); FpSpread1.ActiveSheetView.SetFormula(1, 1, "ALPHA * 20");
Dim cns As FarPoint.Web.Spread.Model.ICustomNameSupport cns = FpSpread1.ActiveSheetView.DataModel cns.AddCustomName("ALPHA", New FarPoint.CalcEngine.DoubleExpression(20)) FpSpread1.ActiveSheetView.SetFormula(1, 1, "ALPHA * 20")