DetailItemCollectionInsertExpression Method TIBCO Spotfire 7.6 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: 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: ExpressionDetailItem
An ExpressionDetailItem
Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe index value is less than zero or is greater than or equal to the number of items in the collection.
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.
C#
plot.Details.Items.InsertExpression(0, "SUM([Sales]) as Total Sales");
Version Information

Supported in: 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference