Skip to main content

SalTableColumnCollection

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Runtime.50 (5.0.0.0)

Provides indexed and named access to a table column collection.

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

Example:

void SetCustomerText(PPJ.Runtime.Windows.SalTableColumnCollection columns)
{
var column = columns["CustomerName"];
if (column != null)
column.Text = "Customer";
}

Properties

Instance member Count

Int32: Gets the number of columns in this collection.

Instance member Item(index)

SalTableColumn: Gets a column by its zero-based collection position.

Instance member Item(name)

SalTableColumn: Finds the first column with an exact control name.

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 all column references into a destination array.

ParameterTypeDescription
arrayArrayThe destination array.
indexInt32The first destination index.

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.