menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ParenthesesPtg - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ParenthesesPtg

    Parentheses. This token is for display purposes only, it does not affect the result of the token array. If it follows an operator, the parentheses will enclose the operator and its operand(s), which is the result of the enclosed operation. This operator does not modify the token class of its operand.

    Inheritance
    System.Object
    Ptg
    OperationPtg
    UnaryOperationPtg
    ParenthesesPtg
    Implements
    System.ICloneable
    Inherited Members
    OperationPtg.GetOperandsSeparator(FormulaUtil)
    OperationPtg.InfillPTG(DataProvider, Int32, ExcelVersion)
    OperationPtg.IsOperation
    OperationPtg.IsPlaceAfter
    OperationPtg.NumberOfOperands
    OperationPtg.OperationSymbol
    OperationPtg.PushResultToStack(Stack<Object>)
    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.ToByteArray(ExcelVersion)
    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)
    UnaryOperationPtg.GetSize(ExcelVersion)
    UnaryOperationPtg.GetTokenId(String)
    UnaryOperationPtg.OperationType
    Namespace: Syncfusion.XlsIO.Parser.Biff_Records.Formula
    Assembly: Syncfusion.XlsIO.UWP.dll
    Syntax
    [Token]
    public class ParenthesesPtg : UnaryOperationPtg, ICloneable

    Constructors

    ParenthesesPtg()

    Default constructor

    Declaration
    public ParenthesesPtg()

    ParenthesesPtg(DataProvider, Int32, ExcelVersion)

    Creates token using data from an array of bytes.

    Declaration
    public ParenthesesPtg(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.

    ParenthesesPtg(String)

    Creates token by string representation.

    Declaration
    public ParenthesesPtg(string strFormula)
    Parameters
    Type Name Description
    System.String strFormula

    String should be equal to "(".

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    When strFormula is not equal to "(".

    Properties

    Attributes

    Returns all TokenAttributes applied to the token. Read-only.

    Declaration
    protected override TokenAttribute[] Attributes { get; }
    Property Value
    Type
    TokenAttribute[]
    Overrides
    UnaryOperationPtg.Attributes

    Methods

    GetOperands(String, ref Int32, FormulaUtil)

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

    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 opening bracket.

    FormulaUtil formulaParser

    Formula parser.

    Returns
    Type Description
    System.String[]

    Array of strings that contain operation parameters.

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

    PushResultToStack(FormulaUtil, Stack<Object>, Boolean)

    Gets all needed operands from the Stack parameter and pushes result into the Stack.

    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 operation result as string.

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

    ToString(FormulaUtil, Int32, Int32, Boolean, NumberFormatInfo, Boolean)

    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.

    System.Int32 iRow

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

    System.Int32 iColumn

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

    System.Boolean bR1C1

    Indicates whether R1C1 notation should be used.

    System.Globalization.NumberFormatInfo numberFormat
    System.Boolean isForSerialization
    Returns
    Type Description
    System.String

    String representation of this token.

    Overrides
    UnaryOperationPtg.ToString(FormulaUtil, Int32, Int32, Boolean, NumberFormatInfo, Boolean)

    UpdateParseOptions(ExcelParseFormulaOptions)

    Updates parse formula options if necessary.

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

    Options to update.

    Returns
    Type Description
    ExcelParseFormulaOptions

    Updated value.

    Overrides
    OperationPtg.UpdateParseOptions(ExcelParseFormulaOptions)

    Implements

    System.ICloneable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved