Spread WPF Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / Worksheet Class / GetCustomName Method
Example


In This Topic
    GetCustomName Method (Worksheet)
    In This Topic
    Finds the specified custom name.
    Syntax
    'Declaration
     
    Public Function GetCustomName( _
       ByVal name As String _
    ) As NameInfo
    'Usage
     
    Dim instance As Worksheet
    Dim name As String
    Dim value As NameInfo
     
    value = instance.GetCustomName(name)
    public NameInfo GetCustomName( 
       string name
    )

    Parameters

    name

    Return Value

    The NameInfo object of the specified custom name.
    Example
    This example uses the GetCustomName method.
    gcSpreadSheet1.Sheets[0].SetCustomName("Test", 0, 0, new GrapeCity.CalcEngine.Expressions.CalcDoubleExpression(10));
    listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetCustomName("Test").Expression.ToString());
    GcSpreadSheet1.Sheets(0).SetCustomName("Test", 0, 0, New GrapeCity.CalcEngine.Expressions.CalcDoubleExpression(10))
    ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetCustomName("Test").Expression.ToString())
    See Also