TableLayoutStyleCollection 类

定义

实现表布局样式集合的基本功能。Implements the basic functionality for a collection of table layout styles.

public ref class TableLayoutStyleCollection abstract : System::Collections::IList
public abstract class TableLayoutStyleCollection : System.Collections.IList
type TableLayoutStyleCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public MustInherit Class TableLayoutStyleCollection
Implements IList
继承
TableLayoutStyleCollection
派生
实现

注解

类表示用于描述关联TableLayoutPanel的中的列或行的所有样式的集合。 TableLayoutStyleCollectionThe TableLayoutStyleCollection class represents the collection of all the styles used to describe the columns or rows in an associated TableLayoutPanel. 派生自TableLayoutStyleCollection的类是专用化的, 如下所示:Classes derived from TableLayoutStyleCollection are specialized as follows:

的大多数成员TableLayoutStyleCollection是的IList实现。Most of the members of TableLayoutStyleCollection are implementations of IList.

属性

Count

获取 TableLayoutStyleCollection 中实际包含的样式数量。Gets the number of styles actually contained in the TableLayoutStyleCollection.

Item[Int32]

获取或设置指定索引处的 TableLayoutStyleGets or sets TableLayoutStyle at the specified index.

方法

Add(TableLayoutStyle)

在当前集合的末尾添加一个新的 TableLayoutStyleAdds a new TableLayoutStyle to the end of the current collection.

Clear()

断开集合与关联的 TableLayoutPanel 之间的关联,并清空该集合。Disassociates the collection from its associated TableLayoutPanel and empties the collection.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
RemoveAt(Int32)

移除集合的指定索引处的样式。Removes the style at the specified index of the collection.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式界面实现

ICollection.CopyTo(Array, Int32)

有关此方法的说明,请参见 CopyTo(Array, Int32) 方法。For a description of this method, see the CopyTo(Array, Int32) method.

ICollection.IsSynchronized

有关此方法的说明,请参见 IsSynchronized 属性。For a description of this method, see the IsSynchronized property.

ICollection.SyncRoot

有关此方法的说明,请参见 SyncRoot 属性。For a description of this method, see the SyncRoot property.

IEnumerable.GetEnumerator()

有关此方法的说明,请参见 GetEnumerator() 方法。For a description of this method, see the GetEnumerator() method.

IList.Add(Object)

有关此方法的说明,请参见 Add(Object) 方法。For a description of this method, see the Add(Object) method.

IList.Contains(Object)

有关此方法的说明,请参见 Contains(Object) 方法。For a description of this method, see the Contains(Object) method.

IList.IndexOf(Object)

有关此方法的说明,请参见 IndexOf(Object) 方法。For a description of this method, see the IndexOf(Object) method.

IList.Insert(Int32, Object)

有关此方法的说明,请参见 Insert(Int32, Object) 方法。For a description of this method, see the Insert(Int32, Object) method.

IList.IsFixedSize

有关此方法的说明,请参见 IsFixedSize 属性。For a description of this method, see the IsFixedSize property.

IList.IsReadOnly

有关此方法的说明,请参见 IsReadOnly 属性。For a description of this method, see the IsReadOnly property.

IList.Item[Int32]

有关此方法的说明,请参见 Item[Int32] 属性。For a description of this method, see the Item[Int32] property.

IList.Remove(Object)

有关此方法的说明,请参见 Remove(Object) 方法。For a description of this method, see the Remove(Object) method.

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅