menu

WPF

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

    Show / Hide Table of Contents

    Class ControlPtg

    This class represents the control token (this can be tExp or tTbl).

    Inheritance
    System.Object
    Ptg
    RefPtg
    ControlPtg
    Implements
    System.ICloneable
    IRangeGetterToken
    IRangeGetter
    IRectGetter
    IToken3D
    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.ConvertPtgToNPtg(IWorkbook, Int32, Int32)
    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.GetR1C1CellName(Int32, Int32, Int32, Int32, Boolean, Boolean)
    RefPtg.GetR1C1Index(Int32, String, Boolean)
    RefPtg.GetR1C1Name(Int32, String, Int32, Boolean)
    RefPtg.GetRange(IWorkbook, IWorksheet)
    RefPtg.GetRCCellName(Int32, Int32)
    RefPtg.GetRectangle()
    RefPtg.GetRowIndex(Int32, String, Boolean, Boolean)
    RefPtg.IndexToCode(Int32)
    RefPtg.IsRelative(Byte, Byte)
    RefPtg.Offset(Int32, Int32, Int32, Int32, Rectangle, Int32, Rectangle, Boolean, 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.ToString()
    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
    [Token(FormulaToken.tTbl)]
    [Token(FormulaToken.tExp)]
    [CLSCompliant(false)]
    public class ControlPtg : RefPtg, ICloneable, IRangeGetterToken, IRangeGetter, IRectGetter, IToken3D

    Constructors

    ControlPtg()

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

    Declaration
    public ControlPtg()

    ControlPtg(DataProvider, Int32, ExcelVersion)

    Constructs token from byte array.

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

    ControlPtg(Int32, Int32)

    Declaration
    public ControlPtg(int iRow, int iColumn)
    Parameters
    Type Name Description
    System.Int32 iRow
    System.Int32 iColumn

    Properties

    IsColumnIndexRelative

    Declaration
    public override bool IsColumnIndexRelative { get; set; }
    Property Value
    Type
    System.Boolean
    Overrides
    RefPtg.IsColumnIndexRelative

    IsRowIndexRelative

    Declaration
    public override bool IsRowIndexRelative { get; set; }
    Property Value
    Type
    System.Boolean
    Overrides
    RefPtg.IsRowIndexRelative

    Methods

    GetCorrespondingErrorCode()

    Declaration
    public override FormulaToken GetCorrespondingErrorCode()
    Returns
    Type
    FormulaToken
    Overrides
    RefPtg.GetCorrespondingErrorCode()

    GetSize(ExcelVersion)

    Read-only. Size of the token.

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

    InfillPTG(DataProvider, ref Int32, ExcelVersion)

    Infill PTG structure.

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

    Represents storage.

    System.Int32 offset

    Offset in storage.

    ExcelVersion version

    Excel version that was used to infill data provider.

    Overrides
    RefPtg.InfillPTG(DataProvider, ref Int32, ExcelVersion)

    MoveIntoDifferentSheet(RefPtg, Int32, Rectangle, Int32, Int32, Int32, WorkbookImpl)

    Moves token into different worksheet.

    Declaration
    protected override Ptg MoveIntoDifferentSheet(RefPtg result, int iSourceSheetIndex, Rectangle rectSource, int iDestSheetIndex, int iRowOffset, int iColOffset, WorkbookImpl book)
    Parameters
    Type Name Description
    RefPtg result

    Token to move

    System.Int32 iSourceSheetIndex

    Source sheet index.

    System.Drawing.Rectangle rectSource

    Source rectangle.

    System.Int32 iDestSheetIndex

    Destination sheet index.

    System.Int32 iRowOffset

    Row offset.

    System.Int32 iColOffset

    Column offset.

    WorkbookImpl book

    Parent workbook.

    Returns
    Type Description
    Ptg

    Modified token.

    Overrides
    RefPtg.MoveIntoDifferentSheet(RefPtg, Int32, Rectangle, Int32, Int32, Int32, WorkbookImpl)

    ToByteArray(ExcelVersion)

    Converts token to byte array.

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

    Array of bytes that represents this token.

    Overrides
    RefPtg.ToByteArray(ExcelVersion)

    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
    IRangeGetter
    IRectGetter
    IToken3D
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved