DetailItemCollection InsertExpression Method TIBCO Spotfire 6.0 API Reference
Inserts a detail item based on an expression.

Namespace: Spotfire.Dxp.Application.Visuals
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 13.19.7018.3940 (13.19.7018.3940)
Syntax

public ExpressionDetailItem InsertExpression(
	int index,
	string expression
)

Parameters

index
Type: System Int32
Index to insert at.
expression
Type: System String
The expression.

Return Value

Type: ExpressionDetailItem
An ExpressionDetailItem
Exceptions

ExceptionCondition
System ArgumentOutOfRangeExceptionThe index value is less than zero or is greater than or equal to the number of items in the collection.
System ArgumentNullExceptionThe expression value is null.
Examples

This example shows how to insert a detail that will display something like "Total Sales: 500" in the tooltip for a marker.
plot.Details.Items.InsertExpression(0, "SUM([Sales]) as Total Sales");
See Also