alexa
menu

MAUI

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

    Show / Hide Table of Contents

    Class DoublePtg

    This token contains an IEEE floating-point number.

    Inheritance
    object
    Ptg
    DoublePtg
    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.GetString16Bit(byte[], int)
    Ptg.GetString16Bit(byte[], int, out int)
    Ptg.IndexToCode(FormulaToken, int)
    Ptg.IsOperation
    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, bool, IWorksheet)
    Ptg.ToString(int, int, bool)
    Namespace: Syncfusion.XlsIO.Parser.Biff_Records.Formula
    Assembly: Syncfusion.XlsIO.NET.dll
    Syntax
    [Token(FormulaToken.tNumber)]
    public class DoublePtg : Ptg, ICloneable

    Constructors

    DoublePtg()

    Default constructor. To prevent user from creating a token without parameters and to allow descendants do this.

    Declaration
    public DoublePtg()

    DoublePtg(DataProvider, int, ExcelVersion)

    Constructs token using data from byte array.

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

    DoublePtg(double)

    Constructs token by double value.

    Declaration
    public DoublePtg(double value)
    Parameters
    Type Name Description
    double value

    Double value.

    DoublePtg(string)

    Constructs token by string value that represents number.

    Declaration
    public DoublePtg(string value)
    Parameters
    Type Name Description
    string value

    String value that will be converted to double.

    DoublePtg(string, NumberFormatInfo)

    Constructs token by string value that represents number.

    Declaration
    public DoublePtg(string value, NumberFormatInfo numberInfo)
    Parameters
    Type Name Description
    string value

    String value that will be converted to double.

    NumberFormatInfo numberInfo

    Represents culture for parsing from string.

    Properties

    Value

    Gets / sets value that is represented by this token.

    Declaration
    public double Value { get; set; }
    Property Value
    Type
    double

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

    ToByteArray(ExcelVersion)

    Converts token to byte array.

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

    Array of bytes representing this token.

    Overrides
    Ptg.ToByteArray(ExcelVersion)

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

    Converts token to a string.

    Declaration
    public override string ToString(FormulaUtil formulaUtil, int iRow, int iColumn, bool bR1C1, NumberFormatInfo numberInfo)
    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 numberInfo

    Represents current number info.

    Returns
    Type Description
    string

    String representation of this token.

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

    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)

    Implements

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