Enum PowerQueryFormulaType
PowerQueryFormulaType enumeration
Represents the type of power query formula.
public enum PowerQueryFormulaType
Values
| Name | Value | Description |
|---|---|---|
| Formula | 0 | Formula power query formula. |
| Function | 1 | Function power query formula. |
| Parameter | 2 | Parameter power query formula. |
Examples
namespace AsposeCellsExamples
{
using Aspose.Cells.QueryTables;
using System;
public class QueryTablesClassPowerQueryFormulaTypeDemo
{
public static void Run()
{
try
{
// Demonstrate all enum values of PowerQueryFormulaType
PowerQueryFormulaType formulaType = PowerQueryFormulaType.Formula;
PowerQueryFormulaType functionType = PowerQueryFormulaType.Function;
PowerQueryFormulaType parameterType = PowerQueryFormulaType.Parameter;
// Display enum values and their numeric representations
Console.WriteLine($"Formula type: {formulaType} ({(int)formulaType})");
Console.WriteLine($"Function type: {functionType} ({(int)functionType})");
Console.WriteLine($"Parameter type: {parameterType} ({(int)parameterType})");
// Demonstrate enum comparison
if (formulaType == PowerQueryFormulaType.Formula)
{
Console.WriteLine("Successfully identified Formula type");
}
if (functionType == PowerQueryFormulaType.Function)
{
Console.WriteLine("Successfully identified Function type");
}
if (parameterType == PowerQueryFormulaType.Parameter)
{
Console.WriteLine("Successfully identified Parameter type");
}
}
catch (Exception ex)
{
Console.WriteLine($"Error working with PowerQueryFormulaType: {ex.Message}");
}
}
}
}
See Also
- namespace Aspose.Cells.QueryTables
- assembly Aspose.Cells