TableLayoutStyleCollection TableLayoutStyleCollection TableLayoutStyleCollection TableLayoutStyleCollection Class

定义

实现表布局样式集合的基本功能。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
继承
TableLayoutStyleCollectionTableLayoutStyleCollectionTableLayoutStyleCollectionTableLayoutStyleCollection
派生
实现

注解

TableLayoutStyleCollection类表示用于描述列或行中关联的所有样式的集合TableLayoutPanelThe 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都是实现的IListMost of the members of TableLayoutStyleCollection are implementations of IList.

属性

Count Count Count Count

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

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取或设置TableLayoutStyle中指定索引处。Gets or sets TableLayoutStyle at the specified index.

方法

Add(TableLayoutStyle) Add(TableLayoutStyle) Add(TableLayoutStyle) Add(TableLayoutStyle)

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

Clear() Clear() Clear() Clear()

取消关联的集合及其关联的TableLayoutPanel并清空该集合。Disassociates the collection from its associated TableLayoutPanel and empties the collection.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

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

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

显式界面实现

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

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

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

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

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

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

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

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

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

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

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

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

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

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

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

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

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

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

IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

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

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

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

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

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

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

将转换IEnumerableIQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅