Spread Windows Forms 11.0 Product Documentation
RemoveCustomName(String) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > RemoveCustomName Method : RemoveCustomName(String) Method
Custom name to remove
Removes a custom name on this sheet from the model.
Syntax
'Declaration
 
Public Overloads Sub RemoveCustomName( _
   ByVal name As String _
) 
'Usage
 
Dim instance As SheetView
Dim name As String
 
instance.RemoveCustomName(name)
public void RemoveCustomName( 
   string name
)

Parameters

name
Custom name to remove
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
See Also

Reference

SheetView Class
SheetView Members
Overload List