Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

SpreadsheetFormulaSyntaxTree

Namespace OfficeIMO.Spreadsheet
Assembly OfficeIMO.Core
Modifiers sealed

Lossless, nested syntax tree for Excel A1 or OpenFormula text. Parsing keeps literals and trivia while assigning separator and reference semantics from their structural context.

Inheritance

  • Object
  • SpreadsheetFormulaSyntaxTree

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Methods

public static SpreadsheetFormulaSyntaxTree Parse(String text, SpreadsheetFormulaDialect dialect) #
Returns: SpreadsheetFormulaSyntaxTree

Parses a formula using the requested grammar.

Parameters

text System.String requiredposition: 0
dialect OfficeIMO.Spreadsheet.SpreadsheetFormulaDialect requiredposition: 1
public SpreadsheetFormulaTranslationResult TranslateTo(SpreadsheetFormulaDialect targetDialect) #
Returns: SpreadsheetFormulaTranslationResult

Translates the parsed tree to another supported grammar.

Parameters

targetDialect OfficeIMO.Spreadsheet.SpreadsheetFormulaDialect requiredposition: 0

Properties

public String Text { get; } #

Gets the exact authored formula.

public SpreadsheetFormulaDialect Dialect { get; } #

Gets the source grammar.

public SpreadsheetFormulaSyntaxNode Root { get; } #

Gets the root syntax node.

public IReadOnlyList<SpreadsheetFormulaDiagnostic> Diagnostics { get; } #

Gets parse findings in source order.

public Boolean IsValid { get; } #

Gets whether the authored formula is structurally valid for safe translation.