Creates a new Visual with a visual of the type identified by visualTypeId
and adds it to the collection.
Namespace: Spotfire.Dxp.ApplicationAssembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
Syntax
Parameters
- visualTypeId
- Type: Spotfire.Dxp.Framework.DocumentModel TypeIdentifier
The visual type identifier.
Return Value
Type: VisualThe newly created Visual.
Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | If the visualTypeId is null. |
System ArgumentException | If the visualTypeId is invalid. |
Examples
BarChart chart = page.Visuals.AddNew(VisualTypeIdentifiers.BarChart).As<BarChart>();
Version Information
See Also