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