DataGridViewCellStyleScopes 枚举

定义

指定拥有发生更改的单元格样式的 DataGridView 实体。

此枚举支持其成员值的按位组合。

C#
[System.Flags]
public enum DataGridViewCellStyleScopes
继承
DataGridViewCellStyleScopes
属性

字段

名称 说明
AlternatingRows 128

由更改的 AlternatingRowsDefaultCellStyle 属性返回的对象的一个或多个值。

Cell 1

由更改的 Style 属性返回的对象的一个或多个值。

Column 2

由更改的 DefaultCellStyle 属性返回的对象的一个或多个值。

ColumnHeaders 16

由更改的 ColumnHeadersDefaultCellStyle 属性返回的对象的一个或多个值。

DataGridView 8

由更改的 DefaultCellStyle 属性返回的对象的一个或多个值。

None 0

未指定所属的实体。

Row 4

由更改的 DefaultCellStyle 属性返回的对象的一个或多个值。

RowHeaders 32

由更改的 RowHeadersDefaultCellStyle 属性返回的对象的一个或多个值。

Rows 64

由更改的 RowsDefaultCellStyle 属性返回的对象的一个或多个值。

注解

此枚举用于 DataGridViewCellStyleContentChangedEventArgs 指示 哪个部分 DataGridView 拥有 DataGridViewCellStyle 更改的 。

适用于

产品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

另请参阅