VisualCollection AddNew T  Method TIBCO Spotfire 6.0 API Reference
Adds a new visual of the specified type.

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

public T AddNew<T>()
where T : VisualContent
Type Parameters

T

Return Value

Type: T
The newly created content.
Examples

The following example snippet shows how to add a bar chart to a visual collection.
BarChart chart = page.Visuals.AddNew<BarChart>();
See Also