This is a collection of DataColumn columns in a DataTable. This class is used
to retrieve columns and to add new columns.
Inheritance Hierarchy
Node
Spotfire.Dxp.Framework.DocumentModelDocumentNode
Spotfire.Dxp.DataDataColumnCollection
Namespace: Spotfire.Dxp.Data
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 71.0.22122.5390 (71.0.22122.5390)
Syntax
C#
[SerializableAttribute] [PersistenceVersionAttribute(4, 0)] public sealed class DataColumnCollection : DocumentNode, IEnumerable<DataColumn>, IEnumerable
The DataColumnCollection type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| Context |
Gets the context of this node.
(Inherited from DocumentNode.) | |
| Count | Gets the number of columns in the collection.
| |
| IsAttached |
Gets a value indicating whether this node is attached.
(Inherited from DocumentNode.) | |
| ItemInt32 | Get a column with a given index.
| |
| ItemString | Get a column with the given name.
| |
| Transactions |
Gets a collection of methods for executing transactions on the document.
(Inherited from DocumentNode.) |
Methods
| Name | Description | |
|---|---|---|
| AddCalculatedColumn | Add a new calculated column.
| |
| AddHierarchyColumn | Add a new hierarchy column.
| |
| AddTagsColumn | Add a new tags column.
| |
| Contains | Check if this collection contains a column with the
given name.
| |
| CreateUniqueName | Create a new unique column name from a suggestion. The
suggested name is used if possible.
| |
| FindAll(String) | Find all columns which matches the given search pattern.
For search syntax see Spotfire user manual.
| |
| FindAll(PredicateDataColumn) | Find all columns satisfying the Predicate.
| |
| ForEachNodeInSubTreeTNode |
Applies the specified action to all nodes of the specified type in the subtree spanned
from this node, including this node.
(Inherited from DocumentNode.) | |
| GetEnumerator |
Returns an enumerator that iterates through the collection.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsValidName | Check if the suggested column name is a valid unique
name in the collection.
| |
| Remove(IEnumerableString) | Remove the columns with the given names.
| |
| Remove(String) | Remove the column with the given name.
| |
| Remove(DataColumn) | Remove the column from this collection.
| |
| Remove(IEnumerableDataColumn) | Remove columns from this collection.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| TryGetValue | Try to get a column with a given name.
|
Explicit Interface Implementations
Version Information
See Also