alexa
menu

MAUI

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

    Show / Hide Table of Contents

    Class AttrPtg

    A special attribute control token - typically either a SUM function or an IF function.

    Inheritance
    object
    Ptg
    OperationPtg
    FunctionPtg
    FunctionVarPtg
    AttrPtg
    Implements
    ICloneable
    Inherited Members
    FunctionPtg.Attributes
    FunctionPtg.FunctionIndex
    FunctionPtg.GetOperands(string, ref int, bool, FormulaUtil)
    FunctionPtg.NumberOfArguments
    FunctionPtg.OperandsDelimiter
    FunctionPtg.OperationType
    FunctionVarPtg.GetOperands(string, ref int, FormulaUtil)
    FunctionVarPtg.IndexToCode(int)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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, int, int)
    Ptg.ConvertSharedToken(IWorkbook, int, int)
    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.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
    [Token(FormulaToken.tAttr)]
    [CLSCompliant(false)]
    public class AttrPtg : FunctionVarPtg, ICloneable

    Constructors

    AttrPtg()

    Default constructor for this token.

    Declaration
    public AttrPtg()

    AttrPtg(DataProvider, int, ExcelVersion)

    Constructs token and fills it with data from the byte array.

    Declaration
    public AttrPtg(DataProvider provider, int iOffset, ExcelVersion version)
    Parameters
    Type Name Description
    DataProvider provider

    Object that provides access to the data.

    int iOffset

    Offset to the token data.

    ExcelVersion version

    Excel version that was used to infill data provider.

    AttrPtg(byte, ushort)

    Constructs token by options value and data.

    Declaration
    public AttrPtg(byte options, ushort usData)
    Parameters
    Type Name Description
    byte options

    Attribute options.

    ushort usData

    Attribute data.

    AttrPtg(int, int)

    Constructs token by options value and data.

    Declaration
    public AttrPtg(int options, int data)
    Parameters
    Type Name Description
    int options

    Attribute options.

    int data

    Attribute data.

    Fields

    SIZE

    Size of the token.

    Declaration
    public const int SIZE = 4
    Field Value
    Type
    int

    Properties

    AttrData

    The word contained in this attribute.

    Declaration
    public ushort AttrData { get; set; }
    Property Value
    Type
    ushort

    AttrData1

    Declaration
    public int AttrData1 { get; }
    Property Value
    Type
    int

    HasBaxcel

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

    HasOptGoto

    Returns True if this is a goto; otherwise False.

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

    HasOptimizedChoose

    Returns True if this is a CHOOSE; otherwise False.

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

    HasOptimizedIf

    Returns True if this is an IF; otherwise False.

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

    HasSemiVolatile

    True when following function has semivolatile value, that can change without user interaction (such as NOW, TODAY, etc.).

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

    HasSpace

    Returns True if space exist; otherwise False.

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

    HasSum

    Returns True if this is SUM; otherwise False.

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

    Options

    Read-only. Options used by the attribute.

    Declaration
    public byte Options { get; }
    Property Value
    Type
    byte

    SpaceAfterToken

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

    SpaceCount

    Gets / sets number of spaces in the case of space token.

    Declaration
    public int SpaceCount { get; set; }
    Property Value
    Type
    int

    Methods

    GetSize(ExcelVersion)

    Read-only. Size of the token.

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

    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
    FunctionVarPtg.InfillPTG(DataProvider, ref int, ExcelVersion)

    PushResultToStack(FormulaUtil, Stack<object>, bool)

    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.

    Stack<object> operands

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

    bool isForSerialization
    Overrides
    FunctionVarPtg.PushResultToStack(FormulaUtil, Stack<object>, bool)

    ToByteArray(ExcelVersion)

    Converts token to array of bytes.

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

    Array of bytes representing this token.

    Overrides
    FunctionVarPtg.ToByteArray(ExcelVersion)

    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
    FunctionPtg.ToString(FormulaUtil, int, int, bool, NumberFormatInfo, bool)

    Implements

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