IDataTable#

class ansys.mechanical.stubs.v242.Ansys.Mechanical.Interfaces.IDataTable#

Bases: object

IDataTable interface.

Overview#

Add

Add a new column to the data table.

Clear

Drops all columns from the data table.

Contains

Returns whether the data table contains a column with the specified name.

GetRow

Insert

Insert a column at the specified index.

Remove

Removes the specified column. If the specifier of the column to remove is an T:System.Int32, it will

TryInsertRow

Try to insert the values at the specified row index.

TryRemoveRow

Try to remove the specified row.

ColumnNames

Columns

Explicitly get the columns of the data table.

Count

Gets the number of columns in the table.

IsFixedColumnCount

Get whether additional columns can be added or removed from the contained T:Ansys.Mechanical.Interfaces.IDataSeries.

IsFixedRowCount

Get whether additional rows can be added or removed from the contained

IsReadOnly

Gets whether the data table is read-only.

Item

Item property.

Metadata

Gets or set a dictionary with additional information that may be useful to understanding

Name

Get or set the name of the table.

RowCount

Property detail#

property IDataTable.ColumnNames: System.Collections.Generic.IReadOnlyList[System.String] | None
property IDataTable.Columns: System.Collections.Generic.IList[Ansys.Mechanical.Interfaces.IDataSeries] | None

Explicitly get the columns of the data table.

property IDataTable.Count: System.Int32 | None

Gets the number of columns in the table.

property IDataTable.IsFixedColumnCount: System.Boolean | None

Get whether additional columns can be added or removed from the contained T:Ansys.Mechanical.Interfaces.IDataSeries.

property IDataTable.IsFixedRowCount: System.Boolean | None

Get whether additional rows can be added or removed from the contained T:Ansys.Mechanical.Interfaces.IDataSeries.

property IDataTable.IsReadOnly: System.Boolean | None

Gets whether the data table is read-only.

property IDataTable.Item: Ansys.Mechanical.Interfaces.IDataSeries | None

Item property.

property IDataTable.Metadata: System.Collections.Generic.IDictionary[System.String, System.Object] | None

Gets or set a dictionary with additional information that may be useful to understanding the context of data in the table.

property IDataTable.Name: System.String | None

Get or set the name of the table.

property IDataTable.RowCount: System.Int32 | None

Method detail#

IDataTable.Add(dataSeries: Ansys.Mechanical.Interfaces.IDataSeries) System.Void

Add a new column to the data table.

IDataTable.Clear() System.Void

Drops all columns from the data table.

IDataTable.Contains(name: System.String) System.Boolean

Returns whether the data table contains a column with the specified name.

IDataTable.GetRow(rowIndex: System.Int32) System.Collections.IEnumerable
IDataTable.Insert(columnIndex: System.Int32, dataSeries: Ansys.Mechanical.Interfaces.IDataSeries) System.Void

Insert a column at the specified index.

IDataTable.Remove(key: System.Object) System.Void
Removes the specified column. If the specifier of the column to remove is an T:System.Int32, it will
be interpreted as an index. If the specifier of the column to remove is a T:System.String, it will
be interpreted as a column name.
IDataTable.TryInsertRow(rowIndex: System.Int32, values: System.Collections.IEnumerable) System.Boolean

Try to insert the values at the specified row index.

IDataTable.TryRemoveRow(rowIndex: System.Int32) System.Boolean

Try to remove the specified row.