alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class OperationPtg

    This class is the base class for all operation tokens in the formula.

    Inheritance
    object
    Ptg
    OperationPtg
    FunctionPtg
    UnaryOperationPtg
    Implements
    ICloneable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Ptg.Clone()
    Ptg.CompareArrays(Ptg[], Ptg[])
    Ptg.CompareContent(Ptg)
    Ptg.CompareTo(Ptg)
    Ptg.ConvertPtgToNPtg(IWorkbook, int, int)
    Ptg.ConvertSharedToken(IWorkbook, int, int)
    Ptg.GetSize(ExcelVersion)
    Ptg.GetString16Bit(byte[], int)
    Ptg.GetString16Bit(byte[], int, out int)
    Ptg.IndexToCode(FormulaToken, int)
    Ptg.Offset(int, int, int, int, Rectangle, int, Rectangle, out bool, WorkbookImpl)
    Ptg.Offset(int, int, WorkbookImpl)
    Ptg.RectangleContains(Rectangle, int, int)
    Ptg.ToByteArray(ExcelVersion)
    Ptg.TokenCode
    Ptg.ToString()
    Ptg.ToString(FormulaUtil)
    Ptg.ToString(FormulaUtil, int, int, bool)
    Ptg.ToString(FormulaUtil, int, int, bool, NumberFormatInfo)
    Ptg.ToString(FormulaUtil, int, int, bool, NumberFormatInfo, bool, IWorksheet)
    Ptg.ToString(int, int, bool)
    Namespace: Syncfusion.XlsIO.Parser.Biff_Records.Formula
    Assembly: Syncfusion.XlsIO.NET.dll
    Syntax
    public abstract class OperationPtg : Ptg, ICloneable

    Constructors

    OperationPtg()

    Default constructor.

    Declaration
    public OperationPtg()

    OperationPtg(DataProvider, int, ExcelVersion)

    Creates operation from byte array and offset in this array.

    Declaration
    protected OperationPtg(DataProvider provider, int offset, ExcelVersion version)
    Parameters
    Type Name Description
    DataProvider provider

    Object that provides access to the data.

    int offset

    Offset to token data.

    ExcelVersion version

    Excel version that was used to infill data provider.

    Properties

    Attributes

    Array of all token attributes applied to the object. This property is used to increase performance.

    Declaration
    protected abstract TokenAttribute[] Attributes { get; }
    Property Value
    Type
    TokenAttribute[]

    IsOperation

    Read-only. True if this class represents operation (always True for this class).

    Declaration
    public override bool IsOperation { get; }
    Property Value
    Type
    bool
    Overrides
    Ptg.IsOperation

    IsPlaceAfter

    Gets / sets True if operation sign should be placed after operand and False otherwise.

    Declaration
    public bool IsPlaceAfter { get; set; }
    Property Value
    Type
    bool

    NumberOfOperands

    Read-only. Number of operands this operation needs.

    Declaration
    public virtual int NumberOfOperands { get; }
    Property Value
    Type
    int

    OperationSymbol

    Gets / sets string representation of the operation.

    Declaration
    public string OperationSymbol { get; set; }
    Property Value
    Type
    string

    OperationType

    Read-only. Type of the operation.

    Declaration
    public abstract TOperation OperationType { get; }
    Property Value
    Type
    TOperation

    Methods

    GetOperands(string, ref int, FormulaUtil)

    Returns array of string where each member corresponds to one argument.

    Declaration
    public abstract string[] GetOperands(string strFormula, ref int index, FormulaUtil formulaParser)
    Parameters
    Type Name Description
    string strFormula

    String representation of the formula.

    int index

    Index of the operation.

    FormulaUtil formulaParser

    Formula parser.

    Returns
    Type Description
    string[]

    Array of strings containing operation operands.

    GetOperandsSeparator(FormulaUtil)

    Returns arguments separator.

    Declaration
    protected string GetOperandsSeparator(FormulaUtil formulaUtil)
    Parameters
    Type Name Description
    FormulaUtil formulaUtil

    FormulaUtil object, to get separator from.

    Returns
    Type Description
    string

    Arguments separator.

    InfillPTG(DataProvider, ref int, ExcelVersion)

    Infill PTG structure.

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

    Represents storage.

    int offset

    Offset in storage.

    ExcelVersion version

    Excel version that was used to infill data provider.

    Overrides
    Ptg.InfillPTG(DataProvider, ref int, ExcelVersion)

    PushResultToStack(FormulaUtil, Stack<object>, bool)

    Converts the operation and its operands to the string. Gets all needed operands from the Stack parameter and pushes the result into the Stack.

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

    Object used for formula parsing.

    Stack<object> operands

    Stack that contains all operands and receives result of the operation.

    bool isForSerialization

    PushResultToStack(Stack<object>)

    Converts the operation and its operands to the string. Gets all needed operands from the Stack parameter and pushes the result into the Stack.

    Declaration
    public virtual void PushResultToStack(Stack<object> operands)
    Parameters
    Type Name Description
    Stack<object> operands

    Stack that contains all operands and receives result of the operation.

    ToString(FormulaUtil, int, int, bool, NumberFormatInfo, bool)

    Converts token to a string.

    Declaration
    public override string ToString(FormulaUtil formulaUtil, int iRow, int iColumn, bool bR1C1, NumberFormatInfo numberFormat, bool isForSerialization)
    Parameters
    Type Name Description
    FormulaUtil formulaUtil

    Formula util.

    int iRow

    Zero-based row index of the cell that contains this token.

    int iColumn

    Zero-based row index of the cell that contains this token.

    bool bR1C1

    Indicates whether R1C1 notation should be used.

    NumberFormatInfo numberFormat
    bool isForSerialization
    Returns
    Type Description
    string

    String representation of this token.

    Overrides
    Ptg.ToString(FormulaUtil, int, int, bool, NumberFormatInfo, bool)

    UpdateParseOptions(ExcelParseFormulaOptions)

    Updates parse formula options if necessary.

    Declaration
    public virtual ExcelParseFormulaOptions UpdateParseOptions(ExcelParseFormulaOptions options)
    Parameters
    Type Name Description
    ExcelParseFormulaOptions options

    Options to update.

    Returns
    Type Description
    ExcelParseFormulaOptions

    Updated value.

    Implements

    ICloneable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved