menu

WPF

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

    Show / Hide Table of Contents

    Class RefErrorPtg

    This token contains the last reference to a deleted cell in the same sheet.

    Inheritance
    System.Object
    Ptg
    RefPtg
    RefErrorPtg
    Implements
    System.ICloneable
    IRangeGetterToken
    IRectGetter
    IToken3D
    IRangeGetter
    Inherited Members
    Ptg.Clone()
    Ptg.CompareArrays(Ptg[], Ptg[])
    Ptg.CompareContent(Ptg)
    Ptg.CompareTo(Ptg)
    Ptg.ConvertSharedToken(IWorkbook, Int32, Int32)
    Ptg.GetString16Bit(Byte[], Int32)
    Ptg.GetString16Bit(Byte[], Int32, Int32)
    Ptg.IndexToCode(FormulaToken, Int32)
    Ptg.IsOperation
    Ptg.RectangleContains(Rectangle, Int32, Int32)
    Ptg.TokenCode
    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)
    RefPtg.CodeToIndex()
    RefPtg.CodeToIndex(FormulaToken)
    RefPtg.ColumnBitMask
    RefPtg.ColumnIndex
    RefPtg.ConvertToError()
    RefPtg.DEF_CLOSE_BRACKET
    RefPtg.DEF_OPEN_BRACKET
    RefPtg.DEF_R1C1_COLUMN
    RefPtg.DEF_R1C1_ROW
    RefPtg.Get3DToken(Int32)
    RefPtg.GetA1ColumnIndex(String, Boolean)
    RefPtg.GetA1RowIndex(String, Boolean)
    RefPtg.GetCellName(Int32, Int32, Int32, Int32, Boolean, Boolean, Boolean)
    RefPtg.GetColumnIndex(Int32, String, Boolean, Boolean)
    RefPtg.GetCorrespondingErrorCode()
    RefPtg.GetR1C1CellName(Int32, Int32, Int32, Int32, Boolean, Boolean)
    RefPtg.GetR1C1Index(Int32, String, Boolean)
    RefPtg.GetR1C1Name(Int32, String, Int32, Boolean)
    RefPtg.GetRCCellName(Int32, Int32)
    RefPtg.GetRectangle()
    RefPtg.GetRowIndex(Int32, String, Boolean, Boolean)
    RefPtg.GetSize(ExcelVersion)
    RefPtg.InfillPTG(DataProvider, Int32, ExcelVersion)
    RefPtg.IsColumnIndexRelative
    RefPtg.IsRelative(Byte, Byte)
    RefPtg.IsRowIndexRelative
    RefPtg.MoveIntoDifferentSheet(RefPtg, Int32, Rectangle, Int32, Int32, Int32, WorkbookImpl)
    RefPtg.Offset(Int32, Int32, WorkbookImpl)
    RefPtg.Options
    RefPtg.RowBitMask
    RefPtg.RowIndex
    RefPtg.SetCell(Int32, Int32, String, String, Boolean)
    RefPtg.SetCellA1(String, String)
    RefPtg.SetCellR1C1(Int32, Int32, String, String)
    RefPtg.SetRelative(Byte, Byte, Boolean)
    RefPtg.ToByteArray(ExcelVersion)
    RefPtg.UpdateRectangle(Rectangle)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.XlsIO.Parser.Biff_Records.Formula
    Assembly: Syncfusion.XlsIO.Base.dll
    Syntax
    [ErrorCode("#REF!", 23)]
    [Token(FormulaToken.tRefErr1)]
    [Token(FormulaToken.tRefErr2)]
    [Token(FormulaToken.tRefErr3)]
    public class RefErrorPtg : RefPtg, ICloneable, IRangeGetterToken, IRectGetter, IToken3D, IRangeGetter

    Constructors

    RefErrorPtg()

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

    Declaration
    public RefErrorPtg()

    RefErrorPtg(DataProvider, Int32, ExcelVersion)

    Creates token using data from array of bytes.

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

    RefErrorPtg(RefPtg)

    Creates error token based on specified ref token.

    Declaration
    public RefErrorPtg(RefPtg dataHolder)
    Parameters
    Type Name Description
    RefPtg dataHolder

    Token to take data from.

    RefErrorPtg(String)

    Declaration
    public RefErrorPtg(string errorName)
    Parameters
    Type Name Description
    System.String errorName

    RefErrorPtg(String, IWorkbook)

    Declaration
    public RefErrorPtg(string errorName, IWorkbook book)
    Parameters
    Type Name Description
    System.String errorName
    IWorkbook book

    Fields

    ReferenceError

    Declaration
    public const string ReferenceError = "#REF!"
    Field Value
    Type
    System.String

    Methods

    ConvertPtgToNPtg(IWorkbook, Int32, Int32)

    Converts tokens from regular formula into tokens from shared formula.

    Declaration
    public override Ptg ConvertPtgToNPtg(IWorkbook parent, int iRow, int iColumn)
    Parameters
    Type Name Description
    IWorkbook parent

    Parent workbook.

    System.Int32 iRow

    Represents first row from cells range of shared formula.Zero-base.

    System.Int32 iColumn

    Represents first column from cells range of shared formula.Zero-based.

    Returns
    Type Description
    Ptg

    New token for shared formula.

    Overrides
    RefPtg.ConvertPtgToNPtg(IWorkbook, Int32, Int32)

    GetRange(IWorkbook, IWorksheet)

    Returns range represented by the token that implements this interface.

    Declaration
    public IRange GetRange(IWorkbook book, IWorksheet sheet)
    Parameters
    Type Name Description
    IWorkbook book

    Workbook that contains range.

    IWorksheet sheet

    Worksheet that contains range.

    Returns
    Type Description
    IRange

    Range represented by the token.

    IndexToCode(Int32)

    Converts reference index to token code.

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

    Reference index.

    Returns
    Type Description
    FormulaToken

    Token code.

    Offset(Int32, Int32, Int32, Int32, Rectangle, Int32, Rectangle, out Boolean, WorkbookImpl)

    Declaration
    public override Ptg Offset(int iCurSheetIndex, int iTokenRow, int iTokenColumn, int iSourceSheetIndex, Rectangle rectSource, int iDestSheetIndex, Rectangle rectDest, out bool bChanged, WorkbookImpl book)
    Parameters
    Type Name Description
    System.Int32 iCurSheetIndex
    System.Int32 iTokenRow
    System.Int32 iTokenColumn
    System.Int32 iSourceSheetIndex
    System.Drawing.Rectangle rectSource
    System.Int32 iDestSheetIndex
    System.Drawing.Rectangle rectDest
    System.Boolean bChanged
    WorkbookImpl book

    Parent workbook.

    Returns
    Type
    Ptg
    Overrides
    RefPtg.Offset(Int32, Int32, Int32, Int32, Rectangle, Int32, Rectangle, out Boolean, WorkbookImpl)

    ToString()

    Converts token to a string.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    String representation of this token.

    Overrides
    RefPtg.ToString()

    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
    RefPtg.ToString(FormulaUtil, Int32, Int32, Boolean, NumberFormatInfo, Boolean)

    Implements

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