Note: This API is now obsolete.
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: 30.0.11525.4184 (30.0.11525.4184)
Syntax
C#
[ObsoleteAttribute("Use non-template version instead.")] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public T AddNew<T>( TypeIdentifier visualTypeId ) where T : VisualContent
Parameters
- visualTypeId
- Type: Spotfire.Dxp.Framework.DocumentModelTypeIdentifier
Type Parameters
- T
Return Value
Type: TExamples
// 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.8
Obsolete (compiler warning) in 7.7
Obsolete (compiler warning) in 7.6
Obsolete (compiler warning) in 7.5
Obsolete (compiler warning) in 7.12
Obsolete (compiler warning) in 7.11
Obsolete (compiler warning) in 7.10
Obsolete (compiler warning) in 7.0
See Also