PowerTools SPREAD for Windows Forms 10.0J
ModifyModelScopeCustomName メソッド (DefaultSheetDataModel)


変更するカスタム名の名前
変更するカスタム名の新しい名前。
モデルスコープのカスタム名の名前を変更します。
構文
'Declaration
 
Public Function ModifyModelScopeCustomName( _
   ByVal name As String, _
   ByVal newName As String _
) As Boolean
'使用法
 
Dim instance As DefaultSheetDataModel
Dim name As String
Dim newName As String
Dim value As Boolean
 
value = instance.ModifyModelScopeCustomName(name, newName)
public bool ModifyModelScopeCustomName( 
   string name,
   string newName
)

パラメータ

name
変更するカスタム名の名前
newName
変更するカスタム名の新しい名前。

戻り値の型

名前が変更された場合はtrue、それ以外の場合はfalse
次のサンプルコードは、ModifyModelScopeCustomNameメソッドを使用します。
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 
参照

DefaultSheetDataModel クラス
DefaultSheetDataModel メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.