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: 18.10.8513.5432 (18.10.8513.5432)
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