Inserts a detail item based on an expression.
Namespace: Spotfire.Dxp.Application.VisualsAssembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
Syntax
Parameters
- index
- Type: System Int32
Index to insert at.
- expression
- Type: System String
The expression.
Return Value
Type: ExpressionDetailItemAn ExpressionDetailItem
Exceptions
Exception | Condition |
---|---|
System ArgumentOutOfRangeException | The index value is less than zero or is greater than or equal to the number of items in the collection. |
System ArgumentNullException | The expression value is null. |
Examples
plot.Details.Items.InsertExpression(0, "SUM([Sales]) as Total Sales");
Version Information
See Also