Spread Windows Forms 9.0 Product Documentation
RemoveCustomName(String,Boolean) Method
Example 


Custom name to remove
Removes a custom name on this sheet from the model.
Syntax
'Declaration
 
Public Overloads Sub RemoveCustomName( _
   ByVal name As String, _
   ByVal SheetviewSCope As Boolean _
) 
'Usage
 
Dim instance As SheetView
Dim name As String
Dim SheetviewSCope As Boolean
 
instance.RemoveCustomName(name, SheetviewSCope)
public void RemoveCustomName( 
   string name,
   bool SheetviewSCope
)

Parameters

name
Custom name to remove
SheetviewSCope
Example
This example uses the RemoveCustomName method.
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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.