MESCIUS SPREAD for ASP.NET 10.0J
GetCustomName(String) メソッド

名前を含む文字列
モデルからユーザー定義名を式として取得します。
構文
'Declaration
 
Overloads Function GetCustomName( _
   ByVal name As String _
) As Expression
Expression GetCustomName( 
   string name
)

パラメータ

name
名前を含む文字列

戻り値の型

式で表現された名前を含むString
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");

FarPoint.CalcEngine.Expression exp;
exp = cns.GetCustomName("Alpha");
Response.Write("The type of expression in the custom name is " & exp.ToString());
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")

Dim exp As FarPoint.CalcEngine.Expression
exp = cns.GetCustomName("Alpha")
Response.Write("The type of expression in the custom name is " & exp.ToString())
参照

ICustomNameSupport インタフェース
ICustomNameSupport メンバ
オーバーロード一覧

 

 


© MESCIUS inc. All rights reserved.