Class MemAreaPtg
Summary description for MemAreaPtg.
Inherited Members
Namespace: Syncfusion.XlsIO.Parser.Biff_Records.Formula
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
[Token(FormulaToken.tMemArea1)]
[Token(FormulaToken.tMemArea2)]
[Token(FormulaToken.tMemArea3)]
public class MemAreaPtg : Ptg, ICloneable, IAdditionalData
Constructors
MemAreaPtg()
Default constructor. To prevent user from creating a token without parameters and to allow descendants do this.
Declaration
public MemAreaPtg()
MemAreaPtg(DataProvider, int, ExcelVersion)
Declaration
public MemAreaPtg(DataProvider provider, int offset, ExcelVersion version)
Parameters
| Type | Name | Description |
|---|---|---|
| DataProvider | provider | |
| int | offset | |
| ExcelVersion | version | Excel version that was used to infill data provider. |
MemAreaPtg(string)
Declaration
public MemAreaPtg(string strFormula)
Parameters
| Type | Name | Description |
|---|---|---|
| string | strFormula |
Properties
AdditionalDataSize
Returns size of the additional data. Read-only.
Declaration
public int AdditionalDataSize { get; }
Property Value
| Type |
|---|
| int |
Rectangles
Rectangles.
Declaration
public Rectangle[] Rectangles { get; }
Property Value
| Type |
|---|
| Rectangle[] |
SubExpressionLength
Returns the length of the reference subexpression. Read-only.
Declaration
[CLSCompliant(false)]
public ushort SubExpressionLength { get; }
Property Value
| Type |
|---|
| ushort |
Subexpression
Returns the reference subexpression. Read-only.
Declaration
public Ptg[] Subexpression { get; }
Property Value
| Type |
|---|
| Ptg[] |
Methods
GetSize(ExcelVersion)
Size of the ptg token. Read-only.
Declaration
public override int GetSize(ExcelVersion version)
Parameters
| Type | Name | Description |
|---|---|---|
| ExcelVersion | version |
Returns
| Type |
|---|
| int |
Overrides
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
ReadArray(DataProvider, int)
Extracts additional data.
Declaration
public int ReadArray(DataProvider provider, int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| DataProvider | provider | Object that provides access to the data. |
| int | offset | Offset to the additional data. |
Returns
| Type | Description |
|---|---|
| int | Offset after extracting all required data. |
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
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. |