menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FunctionVarPtg - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FunctionVarPtg

    This class represents function with variable arguments number in a formula.

    Inheritance
    System.Object
    Ptg
    OperationPtg
    FunctionPtg
    FunctionVarPtg
    AttrPtg
    Implements
    System.ICloneable
    Inherited Members
    FunctionPtg.Attributes
    FunctionPtg.FunctionIndex
    FunctionPtg.GetOperands(String, Int32, Boolean, FormulaUtil)
    FunctionPtg.NumberOfArguments
    FunctionPtg.OperandsDelimiter
    FunctionPtg.OperationType
    FunctionPtg.ToString(FormulaUtil, Int32, Int32, Boolean, NumberFormatInfo, Boolean)
    OperationPtg.GetOperandsSeparator(FormulaUtil)
    OperationPtg.IsOperation
    OperationPtg.IsPlaceAfter
    OperationPtg.NumberOfOperands
    OperationPtg.OperationSymbol
    OperationPtg.PushResultToStack(Stack<Object>)
    OperationPtg.UpdateParseOptions(ExcelParseFormulaOptions)
    Ptg.Clone()
    Ptg.CompareArrays(Ptg[], Ptg[])
    Ptg.CompareContent(Ptg)
    Ptg.CompareTo(Ptg)
    Ptg.ConvertPtgToNPtg(IWorkbook, Int32, Int32)
    Ptg.ConvertSharedToken(IWorkbook, Int32, Int32)
    Ptg.GetString16Bit(Byte[], Int32)
    Ptg.GetString16Bit(Byte[], Int32, Int32)
    Ptg.IndexToCode(FormulaToken, Int32)
    Ptg.Offset(Int32, Int32, Int32, Int32, Rectangle, Int32, Rectangle, Boolean, WorkbookImpl)
    Ptg.Offset(Int32, Int32, WorkbookImpl)
    Ptg.RectangleContains(Rectangle, Int32, Int32)
    Ptg.TokenCode
    Ptg.ToString()
    Ptg.ToString(FormulaUtil)
    Ptg.ToString(FormulaUtil, Int32, Int32, Boolean)
    Ptg.ToString(FormulaUtil, Int32, Int32, Boolean, NumberFormatInfo)
    Ptg.ToString(FormulaUtil, Int32, Int32, Boolean, NumberFormatInfo, Boolean, IWorksheet)
    Ptg.ToString(Int32, Int32, Boolean)
    Namespace: Syncfusion.XlsIO.Parser.Biff_Records.Formula
    Assembly: Syncfusion.XlsIO.Portable.dll
    Syntax
    [Token]
    [Token]
    [Token]
    public class FunctionVarPtg : FunctionPtg, ICloneable

    Constructors

    FunctionVarPtg()

    Default constructor

    Declaration
    public FunctionVarPtg()

    FunctionVarPtg(ExcelFunction)

    Constructs token by built-in function index.

    Declaration
    public FunctionVarPtg(ExcelFunction funcIndex)
    Parameters
    Type Name Description
    ExcelFunction funcIndex

    Built-in function index.

    FunctionVarPtg(DataProvider, Int32, ExcelVersion)

    Constructs token using data from byte array.

    Declaration
    public FunctionVarPtg(DataProvider provider, int offset, ExcelVersion version)
    Parameters
    Type Name Description
    DataProvider provider

    Object that provides access to the data.

    System.Int32 offset

    Offset to the token data.

    ExcelVersion version

    Excel version that was used to infill data provider.

    FunctionVarPtg(String)

    Constructs function token by function name.

    Declaration
    public FunctionVarPtg(string strFunctionName)
    Parameters
    Type Name Description
    System.String strFunctionName

    Valid function name.

    Methods

    GetOperands(String, ref Int32, FormulaUtil)

    Gets operands from string and returns array of string representation of the operands.

    Declaration
    public override string[] GetOperands(string strFormula, ref int index, FormulaUtil formulaParser)
    Parameters
    Type Name Description
    System.String strFormula

    Formula string.

    System.Int32 index

    Index of function in the string.

    FormulaUtil formulaParser

    Formula parser.

    Returns
    Type Description
    System.String[]

    Array of strings containing function parameters.

    Overrides
    FunctionPtg.GetOperands(String, ref Int32, FormulaUtil)

    GetSize(ExcelVersion)

    Read-only. Size of the token.

    Declaration
    public override int GetSize(ExcelVersion version)
    Parameters
    Type Name Description
    ExcelVersion version
    Returns
    Type
    System.Int32
    Overrides
    FunctionPtg.GetSize(ExcelVersion)

    IndexToCode(Int32)

    Declaration
    public static FormulaToken IndexToCode(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type
    FormulaToken

    InfillPTG(DataProvider, ref Int32, ExcelVersion)

    Infill PTG structure.

    Declaration
    public override void InfillPTG(DataProvider provider, ref int offset, ExcelVersion version)
    Parameters
    Type Name Description
    DataProvider provider

    Represents storage.

    System.Int32 offset

    Offset in storage.

    ExcelVersion version

    Excel version that was used to infill data provider.

    Overrides
    FunctionPtg.InfillPTG(DataProvider, ref Int32, ExcelVersion)

    PushResultToStack(FormulaUtil, Stack<Object>, Boolean)

    Takes all needed operands from the stack and pushes the result of the function.

    Declaration
    public override void PushResultToStack(FormulaUtil formulaUtil, Stack<object> operands, bool isForSerialization)
    Parameters
    Type Name Description
    FormulaUtil formulaUtil

    Object used for formula parsing.

    System.Collections.Generic.Stack<System.Object> operands

    Stack that contains all operands and will receive result of the operation.

    System.Boolean isForSerialization
    Overrides
    FunctionPtg.PushResultToStack(FormulaUtil, Stack<Object>, Boolean)

    ToByteArray(ExcelVersion)

    Converts token to byte array.

    Declaration
    public override byte[] ToByteArray(ExcelVersion version)
    Parameters
    Type Name Description
    ExcelVersion version
    Returns
    Type Description
    System.Byte[]

    Array of bytes representing this token.

    Overrides
    FunctionPtg.ToByteArray(ExcelVersion)

    Implements

    System.ICloneable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved