FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : ModifyCustomName Method |
'Declaration Public Function ModifyCustomName( _ ByVal currentName As String, _ ByVal newName As String, _ ByVal sheetViewScope As Boolean _ ) As Boolean
'Usage Dim instance As SheetView Dim currentName As String Dim newName As String Dim sheetViewScope As Boolean Dim value As Boolean value = instance.ModifyCustomName(currentName, newName, sheetViewScope)
public bool ModifyCustomName( string currentName, string newName, bool sheetViewScope )
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].ModifyCustomName("Alpha", "TestAlpha", true); listBox1.Items.Add(fpSpread1.ActiveSheet.GetCustomName("TestAlpha", 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).ModifyCustomName("Alpha", "TestAlpha", True) ListBox1.Items.Add(FpSpread1.ActiveSheet.GetCustomName("TestAlpha", True)) End Sub
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