FormulaReferenceStyle Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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; }Public Property FormulaReferenceStyle As FormulaReferenceStyleMembers
| Value | Description |
|---|---|
| A1 | A table cell in formulas is addressed with a column letter and a row number. |
| R1C1 | A table cell in formulas is addressed with a column number and a row number. |
Examples
The following example uses TextControl.FormulaReferenceStyle to configure formula reference style as part of the text control workflow. The configured value is checked before the workflow continues.
textControl.FormulaReferenceStyle = FormulaReferenceStyle.R1C1;
Console.WriteLine($"Formula Reference Style used by Text Control: {textControl.FormulaReferenceStyle}");textControl.FormulaReferenceStyle = FormulaReferenceStyle.R1C1
Console.WriteLine($"Formula Reference Style used by Text Control: {textControl.FormulaReferenceStyle}")