VisualCollection AddNew T  Method (TypeIdentifier) TIBCO Spotfire 7.0 API Reference
Do not use. This method is deprecated in favor of AddNew(TypeIdentifier) and will be removed in a future release.

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

[ObsoleteAttribute("Use non-template version instead.")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public T AddNew<T>(
	TypeIdentifier visualTypeId
)
where T : VisualContent
Type Parameters

T

Return Value

Type: T
Examples

// Do not use this: 
// BarChart chart = page.Visuals.AddNew<BarChart>(VisualTypeIdentifiers.BarChart); 

// Instead use this:
BarChart chart = page.Visuals.AddNew(VisualTypeIdentifiers.BarChart).As<BarChart>();
Version Information

Obsolete (compiler warning) in 7.0
Obsolete (compiler warning) in 6.5
Obsolete (compiler warning) in 6.0
Obsolete (compiler warning) in 5.5
Obsolete (compiler warning) in 5.0
See Also