DeleteColumn

MathMatrix.DeleteColumn method

Deletes the specified column

public void DeleteColumn(int columnIndex)
ParameterTypeDescription
columnIndexInt32The zero-based index of the column to delete.

Exceptions

exceptioncondition
InvalidOperationExceptionWhen you try to delete the last single column in the matrix
ArgumentOutOfRangeExceptionIf columnIndex less than zero or greater or equal to the ColumnCount

Examples

Example:

[C#]
IMathMatrix matrix = new MathMatrix(2, 3);
matrix.DeleteColumn(0);

See Also