TX Text Control .NET for Windows Forms

FormulaReferenceStyle Property

Property|Introduced in 26.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Server.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a value determining how references to table cells in formulas are specified. Supported are the A1 and the R1C1 notation. The A1 notation specifies a table cell with a column letter and a row number, for example B3 refers to the table cell in the third row and the second column. The R1C1 notation addresses a table cell with a row number and a column number, for example R3C2 refers to the table cell in the third row and the second column. Relative addresses can be expressed with square brackets. R[-3]C[-2]. The numbers inside the square brackets show how many rows or columns the cell is relative to itself. Negative row numbers mean that the referenced cell is above the cell containing the formula. Negative column numbers mean that the referenced cell is to the left of the cell containing the formula.

Syntax

public FormulaReferenceStyle FormulaReferenceStyle { get; set; }

Members

ValueDescription
A1A table cell in formulas is addressed with a column letter and a row number.
R1C1A table cell in formulas is addressed with a column number and a row number.

Examples

The following example uses ServerTextControl.FormulaReferenceStyle to configure formula reference style as part of the server text control workflow. The configured value is checked before the workflow continues.

textControl.FormulaReferenceStyle = FormulaReferenceStyle.R1C1;
Console.WriteLine($"Formula Reference Style used by Server Text Control: {textControl.FormulaReferenceStyle}");