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

GetGrandTotalName() public method

public GetGrandTotalName ( ConsolidationFunction functionType ) : string
functionType ConsolidationFunction
return string
        public override string GetGrandTotalName(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 "GRD AVG";
                // Handle other cases as per requirement
                default:
                    return base.GetGrandTotalName(functionType);
            }
        }
    }