FittingModelCollection Class

Spotfire 14.3 API Reference
Collection of FittingModels. Contains methods to add and remove FittingModels and Curves.
Inheritance Hierarchy

SystemObject
  Node
    Spotfire.Dxp.Framework.DocumentModelDocumentNode
      Spotfire.Dxp.Framework.DocumentModelDocumentNodeListBaseFittingModel
        Spotfire.Dxp.Application.Visuals.FittingModelsFittingModelCollection

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

C#
[SerializableAttribute]
[PersistenceVersionAttribute(17, 0)]
public sealed class FittingModelCollection : DocumentNodeListBase<FittingModel>

The FittingModelCollection type exposes the following members.

Properties

  NameDescription
Public propertyContext
Gets the context of this node.
(Inherited from DocumentNode.)
Public propertyCount
Gets the number of elements contained in this instance.
(Inherited from DocumentNodeListBaseT.)
Public propertyIsAttached
Gets a value indicating whether this node is attached.
(Inherited from DocumentNode.)
Public propertyItem
Gets the element at the specified index.
(Inherited from DocumentNodeListBaseT.)
Public propertyLabelFont Obsolete.
Gets or sets the label font for lines and curves.
Public propertyLabelFontMetadata
Gets or sets the label font metadata for lines and curves.
Public propertyLegendItem
Gets the legend item.
Public propertyTransactions
Gets a collection of methods for executing transactions on the document.
(Inherited from DocumentNode.)
Top
Methods

  NameDescription
Public methodAddColumnValuesLine
Adds a line or multiline. The points of the line are defined from the values of a pair of columns.
Public methodCode exampleAddCurve(String)
Adds a curve. The curve is defined by the specified expression, for example "5.0*sin(x) + 2.5".
Public methodCode exampleAddCurve(DataTable, String)
Adds a curve. The curve is defined by the specified expression, for example "a + b*x", where a and b are columns in the specified data table.
Public methodCode exampleAddForecastHoltWinters
Adds a Holt Winters forecast with default settings to the collection.
Public methodCode exampleAddHorizontalLine(String)
Adds a horizontal reference line. The position of the line is defined by the specified expression, for example "Avg(y)" or "1000.0".
Public methodCode exampleAddHorizontalLine(DataTable, String)
Adds a horizontal reference line. The position of the line is defined by the expression, for example "Avg(y)". The expression is evaluated using the columns in the specified data table.
Public methodCode exampleAddNew(Type)
Adds a new fitting model of the specified type.
Public methodCode exampleAddNew(TypeIdentifier)
Adds a new fitting model. The type identifiers for the built-in fitting models are defined in FittingModelTypeIdentifiers.
Public methodCode exampleAddNewT
Adds a new fitting model of the specified type.
Public methodAddStraightLineFit
Adds a straight line that minimizes the sum-of-squares of the y-distances between the data and the line.
Public methodCode exampleAddVerticalLine(String)
Adds a vertical reference line. The position of the line is defined by the expression, for example "Avg(x)" or "1000.0".
Public methodCode exampleAddVerticalLine(DataTable, String)
Adds a vertical reference line. The position of the line is defined by the expression which is evaluated using the columns in the specified data table.
Public methodClear
Removes all fitting models from this collection.
Public methodContains
Determines whether the specified value is in this collection.
(Inherited from DocumentNodeListBaseT.)
Public methodGetEnumerator
Returns an enumerator that iterates through this collection.
(Inherited from DocumentNodeListBaseT.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Searches for the specified value and returns the zero-based index of the first occurrence within this collection.
(Inherited from DocumentNodeListBaseT.)
Public methodRemove
Removes the specified fitting model from this collection.
Public methodToArray
Copies the elements of the collection to a new array.
(Inherited from DocumentNodeListBaseT.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from DocumentNodeListBaseT.)
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
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