Aspose.Cells.Examples.CSharp.Articles.CustomSettings.GetTotalName C# (CSharp) Method

GetTotalName() public method

public GetTotalName ( ConsolidationFunction functionType ) : string
functionType ConsolidationFunction
return string
        public override string GetTotalName(ConsolidationFunction functionType)
        {
            // Checks the function type used to add the subtotals
            switch (functionType)
            {
                // Returns custom value based on the function type used to add the subtotals
                case ConsolidationFunction.Average:
                    return "AVG";
                // Handle other cases as per requirement
                default:
                    return base.GetTotalName(functionType);
            }
        }