CellsHelper.NeedQuoteInFormula

CellsHelper.NeedQuoteInFormula method

Indicates whether the name of the sheet should be enclosed in single quotes

public static bool NeedQuoteInFormula(string sheetName)
ParameterTypeDescription
sheetNameStringThe name of the sheet

Examples

using System;
using Aspose.Cells;

namespace AsposeCellsExamples
{
    public class CellsHelperMethodNeedQuoteInFormulaWithStringDemo
    {
        public static void Run()
        {
            Console.WriteLine("NeedQuoteInFormula(\"Test Ab\"): " + CellsHelper.NeedQuoteInFormula("Test Ab"));
            Console.WriteLine("NeedQuoteInFormula(\"A123\"): " + CellsHelper.NeedQuoteInFormula("A123"));
            Console.WriteLine("NeedQuoteInFormula(\"Sheet1\"): " + CellsHelper.NeedQuoteInFormula("Sheet1"));
        }
    }
}

See Also