TableLayoutStyleCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Implements the basic functionality for a collection of table layout styles.
- C#
- VB.NET
public class TableLayoutStyleCollection : IList, ICollection, IEnumerable
Public Class TableLayoutStyleCollection
Inherits IList
Implements ICollection, IEnumerable
Properties
Count
Int32: Gets the number of styles actually contained in the TableLayoutStyleCollection.
Item(index)
TableLayoutStyle: Returns or sets TableLayoutStyle at the specified index.
Throws:
- ArgumentException The property value is already assigned to another owner. You must first remove it from its current location or clone it.
Methods
Add(style)
Adds a new TableLayoutStyle to the end of the current collection.
| Parameter | Type | Description |
|---|---|---|
| style | TableLayoutStyle | The TableLayoutStyle to add to the TableLayoutStyleCollection. |
Returns: Int32. The position into which the new element was inserted.
Throws:
- ArgumentException style is already assigned to another owner. You must first remove it from its current location or clone it.
Clear()
Disassociates the collection from its associated TableLayoutPanel and empties the collection.
RemoveAt(index)
Removes the style at the specified index of the collection.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | The zero-based index of the TableLayoutStyle to be removed. |
Inherited By
| Name | Description |
|---|---|
| TableLayoutColumnStyleCollection | A collection that stores ColumnStyle objects. |
| TableLayoutRowStyleCollection | A collection that stores RowStyle objects. |