PowerTools SPREAD for Windows Forms 10.0J
RemoveCustomName(String,Boolean) メソッド


削除するカスタム名
このシートのモデルからカスタム名を削除します。
構文
'Declaration
 
Public Overloads Sub RemoveCustomName( _
   ByVal name As String, _
   ByVal SheetviewSCope As Boolean _
) 
'使用法
 
Dim instance As SheetView
Dim name As String
Dim SheetviewSCope As Boolean
 
instance.RemoveCustomName(name, SheetviewSCope)
public void RemoveCustomName( 
   string name,
   bool SheetviewSCope
)

パラメータ

name
削除するカスタム名
SheetviewSCope
次のサンプルコードは、RemoveCustomNameメソッドを使用します。
fpSpread1.ActiveSheet.AddCustomName("Alpha", "Sum(A1,A2)", 1, 1, true, "Comment");
fpSpread1.ActiveSheet.SetFormula(1, 1, "Alpha");
fpSpread1.ActiveSheet.SetValue(0, 0, 10);
fpSpread1.ActiveSheet.SetValue(1, 0, 10);

private void button1_Click(object sender, EventArgs e)
{
fpSpread1.Sheets[0].RemoveCustomName("Alpha");
//fpSpread1.Sheets[0].RemoveCustomName("Alpha", true);
}
FpSpread1.ActiveSheet.AddCustomName("Alpha", "Sum(A1,A2)", 1, 1, True, "Comment")
FpSpread1.ActiveSheet.SetFormula(1, 1, "Alpha")
FpSpread1.ActiveSheet.SetValue(0, 0, 10)
FpSpread1.ActiveSheet.SetValue(1, 0, 10)

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
   FpSpread1.Sheets(0).RemoveCustomName("Alpha")
   'fpSpread1.Sheets(0).RemoveCustomName("Alpha", true)
End Sub
参照

SheetView クラス
SheetView メンバ
オーバーロード一覧

 

 


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