GridTableStylesCollection 成员

表示 DataGrid 控件中的 DataGridTableStyle 对象的集合。

下表列出了由 GridTableStylesCollection 类型公开的成员。

公共属性

(请参见 受保护的属性 )

  名称 说明
Public property Supported by the .NET Compact Framework Count  获取集合中元素的总数。(从 BaseCollection 继承。)
Public property Supported by the .NET Compact Framework IsReadOnly  获取一个值,该值指示集合是否为只读。(从 BaseCollection 继承。)
Public property Supported by the .NET Compact Framework IsSynchronized  获取一个值,通过该值指示对 ICollection 的访问是否同步。(从 BaseCollection 继承。)
Public property Supported by the .NET Compact Framework Item 已重载。获取指定的 DataGridTableStyle
Public property Supported by the .NET Compact Framework SyncRoot  获取可用于同步 BaseCollection 访问的对象。(从 BaseCollection 继承。)

页首

受保护的属性

  名称 说明
Protected property Supported by the .NET Compact Framework List 已重写。获取基础列表。

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Supported by the .NET Compact Framework Add DataGridTableStyle 添加到此集合中。
Public method AddRange 将一个表样式数组添加到集合中。
Public method Supported by the .NET Compact Framework Clear 清除集合。
Public method Supported by the .NET Compact Framework Contains 已重载。 获取一个值,该值指示 GridTableStylesCollection 是否包含指定的 DataGridTableStyle
Public method Supported by the .NET Compact Framework CopyTo  将当前一维 Array 的所有元素复制到指定的一维 Array 中(从指定的目标 Array 索引开始)。 (从 BaseCollection 继承。)
Public method CreateObjRef  创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。 (从 MarshalByRefObject 继承。)
Public method Supported by the .NET Compact Framework Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetEnumerator  获取能够循环访问集合成员的对象。 (从 BaseCollection 继承。)
Public method Supported by the .NET Compact Framework GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method GetLifetimeService  检索控制此实例的生存期策略的当前生存期服务对象。 (从 MarshalByRefObject 继承。)
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method InitializeLifetimeService  获取控制此实例的生存期策略的生存期服务对象。 (从 MarshalByRefObject 继承。)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework Remove 移除指定的 DataGridTableStyle
Public method Supported by the .NET Compact Framework RemoveAt 移除指定索引处的 DataGridTableStyle
Public method Supported by the .NET Compact Framework ToString  返回表示当前 ObjectString。 (从 Object 继承。)

页首

受保护的方法

  名称 说明
Protected method Supported by the .NET Compact Framework Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method Supported by the .NET Compact Framework MemberwiseClone  已重载。 (从 MarshalByRefObject 继承。)
Protected method OnCollectionChanged 引发 CollectionChanged 事件。

页首

公共事件

  名称 说明
Public event CollectionChanged 在集合更改后发生。

页首

显式接口实现

  名称 说明
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.ICollection.CopyTo 从目标数组的指定索引处开始,将集合复制到兼容的一维 Array
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IEnumerable.GetEnumerator 返回该集合的枚举数。
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Add DataGridTableStyle 添加到此集合中。
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Clear 清除集合。
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Contains 确定某元素是否在集合中。
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.IndexOf 返回指定对象在集合中的第一个匹配项的从零开始的索引。
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Insert 实现 Insert 方法。总是引发 NotSupportedException
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Remove 移除指定的 DataGridTableStyle
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.RemoveAt 从集合中移除具有指定索引的 DataGridColumnStyle
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.ICollection.Count 获取集合中项的数目。
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.ICollection.IsSynchronized 获取一个值,该值指示是否同步对 GridTableStylesCollection 的访问(线程安全)。
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.ICollection.SyncRoot 获取可用于同步对集合的访问的对象。
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IList.IsFixedSize 获取一个值,该值指示集合是否具有固定大小。
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IList.IsReadOnly 获取一个值,该值指示集合是否为只读。
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IList.Item 获取或设置指定索引处的元素。

页首

请参见

参考

GridTableStylesCollection 类
System.Windows.Forms 命名空间
DataGrid 类
DataGridTableStyle.GridColumnStyles 属性