Gets or sets the formatting for a category or column.
Namespace: Spotfire.Dxp.Application.VisualsAssembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 18.10.8513.5432 (18.10.8513.5432)
Syntax
Parameters
- categories
- Type: System Object
The expression for a category or column.
Return Value
Type: TThe formatting for the category or column.
Examples
NumberFormatter costFormatter = (NumberFormatter)DataType.Real.CreateFormatter(); NumberFormatter salesFormatter = (NumberFormatter)DataType.Real.CreateFormatter(); leftFormatter.Category = NumberFormatCategory.Number; salesFormatter.Category = NumberFormatCategory.Number; costFormatter.DecimalDigits = 2; salesFormatter.DecimalDigits = 0; lineChart.YAxis.Scale.Formatting.IndexedRealFormatter["Sum(Cost)"] = costFormatter; lineChart.YAxis.Scale.Formatting.IndexedRealFormatter["Sum(Sales)"] = salesFormatter;
Examples
NumberFormatter formatter = (NumberFormatter)DataType.Real.CreateFormatter(); formatter.Category = NumberFormatCategory.Currency; formatter.DecimalDigits = 2; formatter.CultureInfo = new CultureInfo("en-US"); crossTable.Formatting.IndexedRealFormatter["Sum(Sales)"] = formatter;
Version Information
See Also