Visual Class

Spotfire 14.3 API Reference
This class represents either a visualization or a text area.
Inheritance Hierarchy

SystemObject
  Node
    Spotfire.Dxp.Framework.DocumentModelDocumentNode
      Spotfire.Dxp.ApplicationVisual

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

C#
[SerializableAttribute]
[PersistenceVersionAttribute(56, 0)]
public sealed class Visual : DocumentNode, 
	IServiceProvider

The Visual type exposes the following members.

Properties

  NameDescription
Public propertyContext
Gets the context of this node.
(Inherited from DocumentNode.)
Public propertyCustomNodes
Gets the collection of custom nodes associated with this visual.
Public propertyId
Gets the unique id for this instance.
Public propertyIsAttached
Gets a value indicating whether this node is attached.
(Inherited from DocumentNode.)
Public propertyShowTitle
Gets or sets a flag indicating whether to show the title or not.
Public propertyTitle
Gets or sets the title.
Public propertyTransactions
Gets a collection of methods for executing transactions on the document.
(Inherited from DocumentNode.)
Public propertyTypeId
Gets or sets the type identifier for the visual. By setting this property, the visual is converted to the specified type.
Top
Methods

  NameDescription
Public methodApplyUserPreferences
Applies user preferences to a newly created visual.
Public methodAsT
Gets the visual as the specified type.
Public methodAutoConfigure
Configures a newly created visual with reasonable default values given the current data set.
Public methodGetRenderTrigger
Gets a trigger signaling that the visualization has changed and needs to be re-rendered. Note that it does not trigger when highlight changes.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleRender Obsolete.
Renders the visual to the specified graphics context.
Public methodRenderAsync
Renders the visual asynchronously to a PNG image with the specified settings.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods

  NameDescription
Public Extension MethodGetServiceTService
Convenience generic extension method that calls GetService(Type) and casts the result.
(Defined by Extensions.)
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implementationPrivate methodINodeContextGetAncestorT (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodINodeContextGetServiceT (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodINodeContextIsDescendantOf (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsBeginAggregatedTransaction (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteInvisibleTransaction (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteInvisibleTransaction2
Implements ExecuteInvisibleTransaction(Executor) for the Action Mods API.
(Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteStickyTransaction (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteStickyTransaction2
Implements ExecuteStickyTransaction(Guid, Executor) for the Action Mods API.
(Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteTransaction (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactionsExecuteTransaction2
Implements ExecuteTransaction(Executor) for the Action Mods API.
(Inherited from DocumentNode.)
Top
Remarks

The type is determined by the TypeId property, which typically is one of the VisualTypeIdentifiers. By setting the TypeId property, the visual is converted to the new type. Since the user can convert any visual at any time via the user interface, the TypeId must always be determined before calling AsT to get the specific visualization (or text area) type. Although the visualization methods and properties are sometimes declared on abstract base classes such as TablePlotBase and TrellisVisualization, always use the concrete visualization classes, such as BarChart, directly.
Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference