DataColumnCollection Class

TIBCO Spotfire 12.3 API Reference
This is a collection of DataColumn columns in a DataTable. This class is used to retrieve columns and to add new columns.
Inheritance Hierarchy

System.Object
  Node
    Spotfire.Dxp.Framework.DocumentModel.DocumentNode
      Spotfire.Dxp.Data.DataColumnCollection

Namespace:  Spotfire.Dxp.Data
Assembly:  Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 59.0.18126.8552 (59.0.18126.8552)
Syntax

C#
[SerializableAttribute]
[PersistenceVersionAttribute(4, 0)]
public sealed class DataColumnCollection : DocumentNode, 
	IEnumerable<DataColumn>, IEnumerable

The DataColumnCollection type exposes the following members.

Properties

  NameDescription
Public propertyContext
Gets the context of this node.
(Inherited from DocumentNode.)
Public propertyCount
Gets the number of columns in the collection.
Public propertyIsAttached
Gets a value indicating whether this node is attached.
(Inherited from DocumentNode.)
Public propertyItem[Int32]
Get a column with a given index.
Public propertyItem[String]
Get a column with the given name.
Public propertyTransactions
Gets a collection of methods for executing transactions on the document.
(Inherited from DocumentNode.)
Top
Methods

  NameDescription
Public methodAddCalculatedColumn
Add a new calculated column.
Public methodAddHierarchyColumn
Add a new hierarchy column.
Public methodAddTagsColumn
Add a new tags column.
Public methodContains
Check if this collection contains a column with the given name.
Public methodCreateUniqueName
Create a new unique column name from a suggestion. The suggested name is used if possible.
Public methodFindAll(String)
Find all columns which matches the given search pattern. For search syntax see TIBCO Spotfire user manual.
Public methodFindAll(Predicate<DataColumn>)
Find all columns satisfying the Predicate.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsValidName
Check if the suggested column name is a valid unique name in the collection.
Public methodRemove(IEnumerable<String>)
Remove the columns with the given names.
Public methodRemove(String)
Remove the column with the given name.
Public methodRemove(DataColumn)
Remove the column from this collection.
Public methodRemove(IEnumerable<DataColumn>)
Remove columns from this collection.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Try to get a column with a given name.
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implementationPrivate methodIEnumerable.GetEnumerator
Returns an enumerator that iterates through a collection.
Explicit interface implementationPrivate methodINodeContext.GetAncestor<T> (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodINodeContext.GetService<T> (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodINodeContext.IsDescendantOf (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactions.BeginAggregatedTransaction (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactions.ExecuteInvisibleTransaction (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactions.ExecuteStickyTransaction (Inherited from DocumentNode.)
Explicit interface implementationPrivate methodITransactions.ExecuteTransaction (Inherited from DocumentNode.)
Top
Version Information

Supported in: 12.3, 12.2, 12.1, 12.0, 11.8, 11.7, 11.6, 11.5, 11.4, 11.3, 11.2, 11.1, 11.0, 10.10, 7.11
See Also

Reference