SalTableColumnCollection
Namespace: PPJ.Runtime.Windows
Assembly: PPJ.Runtime.50 (5.0.0.0)
Provides indexed and named access to a table column collection.
- C#
- VB.NET
public class SalTableColumnCollection : IList, ICollection, IEnumerable, IEnumerable<SalTableColumn>
Public Class SalTableColumnCollection
Inherits IList
Implements ICollection, IEnumerable, IEnumerable(Of SalTableColumn)
Example:
void SetCustomerText(PPJ.Runtime.Windows.SalTableColumnCollection columns)
{
var column = columns["CustomerName"];
if (column != null)
column.Text = "Customer";
}
Properties
Count
Int32: Gets the number of columns in this collection.
Item(index)
SalTableColumn: Gets a column by its zero-based collection position.
Item(name)
SalTableColumn: Finds the first column with an exact control name.
Methods
Clear()
Disposes every column, deletes the table columns, and empties this collection.
Contains(column)
Checks whether a column instance is in the collection.
| Parameter | Type | Description |
|---|---|---|
| column | SalTableColumn | The column to find. |
Returns: Boolean. True when present; otherwise, false.
Contains(name)
Checks whether a column has the specified control name.
| Parameter | Type | Description |
|---|---|---|
| name | String | The case-sensitive name to find. |
Returns: Boolean. True when a matching name is present; otherwise, false.
CopyTo(array, index)
Copies all column references into a destination array.
| Parameter | Type | Description |
|---|---|---|
| array | Array | The destination array. |
| index | Int32 | The first destination index. |
GetEnumerator()
Enumerates columns in collection order.
Returns: IEnumerator. A non-generic enumerator over the backing column array.
IndexOf(column)
Finds the collection position of a column instance.
| Parameter | Type | Description |
|---|---|---|
| column | SalTableColumn | The column to find. |
Returns: Int32. The zero-based index, or -1 when absent.
IndexOf(name)
Finds the first column with an exact control name.
| Parameter | Type | Description |
|---|---|---|
| name | String | The case-sensitive name to find. |
Returns: Int32. The zero-based index, or -1 when absent.