Skip to main content
Version: 2025

SalTableColumnCollection

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.50 (5.0.0.0)

Maintains the ordered SAL columns belonging to a table window.

public class SalTableColumnCollection : IList, ICollection, IEnumerable, IList<SalTableColumn>, ICollection<SalTableColumn>, IEnumerable<SalTableColumn>

Example:

SalTableColumn column = table.Columns["CustomerName"];
if (column != null)
{
int index = table.Columns.IndexOf("CustomerName");
}

Properties​

Instance member Count​

Int32: Gets the number of columns in this collection.

Instance member Item(index)​

SalTableColumn: Gets a column at its collection index.

Replacing a column through this indexer throws NotSupportedException.

Instance member Item(name)​

SalTableColumn: Gets a column by the name matched by IndexOf.

Returns null when no matching column exists.

Instance member TableWindow​

SalTableWindowBase: Gets the table that owns this column collection.

Methods​

Instance member Clear()​

Disposes every column, deletes the table columns, and empties this collection.

Instance member Contains(column)​

Checks whether a column instance is in the collection.

ParameterTypeDescription
columnSalTableColumnThe column to find.

Returns: Boolean. True when present; otherwise, false.

Instance member Contains(name)​

Checks whether a column has the specified control name.

ParameterTypeDescription
nameStringThe case-sensitive name to find.

Returns: Boolean. True when a matching name is present; otherwise, false.

Instance member CopyTo(array, index)​

Copies the columns into an existing array.

ParameterTypeDescription
arrayArrayThe destination array.
indexInt32The zero-based destination offset.

Instance member GetEnumerator()​

Enumerates columns in collection order.

Returns: IEnumerator. A non-generic enumerator over the backing column array.

Instance member IndexOf(column)​

Finds the collection position of a column instance.

ParameterTypeDescription
columnSalTableColumnThe column to find.

Returns: Int32. The zero-based index, or -1 when absent.

Instance member IndexOf(name)​

Finds the first column with an exact control name.

ParameterTypeDescription
nameStringThe case-sensitive name to find.

Returns: Int32. The zero-based index, or -1 when absent.