Class TokenAttribute
Attribute provides link information between formula token and formula token class.
Inheritance
Namespace: Syncfusion.XlsIO.Parser.Biff_Records.Formula
Assembly: Syncfusion.XlsIO.UWP.dll
Syntax
public sealed class TokenAttribute : Attribute
Constructors
TokenAttribute(FormulaToken)
Creates token attribute by Formula code.
Declaration
public TokenAttribute(FormulaToken Code)
Parameters
Type | Name | Description |
---|---|---|
FormulaToken | Code | Code of the token that will be created. |
TokenAttribute(FormulaToken, String)
Creates token attribute by formula code and operation sign.
Declaration
public TokenAttribute(FormulaToken Code, string OperationSymbol)
Parameters
Type | Name | Description |
---|---|---|
FormulaToken | Code | Token code. |
System.String | OperationSymbol | String representation of the operation. |
TokenAttribute(FormulaToken, String, Boolean)
Creates token attribute by formula code, operation sign, and position of placement (before the False or after the True operand - this is only for unary operations, default value is False).
Declaration
public TokenAttribute(FormulaToken Code, string OperationSymbol, bool bPlaceAfter)
Parameters
Type | Name | Description |
---|---|---|
FormulaToken | Code | Code of the operation. |
System.String | OperationSymbol | String representation of the operation. |
System.Boolean | bPlaceAfter | True if operation is placed after operands; False if before. |
Properties
FormulaType
Read-only. Type of the formula token.
Declaration
public FormulaToken FormulaType { get; }
Property Value
Type |
---|
FormulaToken |
IsPlaceAfter
Read-only. True if operation symbol should be placed after operand (only for unary operands).
Declaration
public bool IsPlaceAfter { get; }
Property Value
Type |
---|
System.Boolean |
OperationSymbol
Read-only. String representation of the operation (if this is attribute for operation); otherwise string.Empty.
Declaration
public string OperationSymbol { get; }
Property Value
Type |
---|
System.String |