DataGridView.ShowEditingIcon 属性

定义

获取或设置一个值,该值指示编辑标志符号是否在所编辑的单元格的行标题中可见。Gets or sets a value indicating whether or not the editing glyph is visible in the row header of the cell being edited.

public:
 property bool ShowEditingIcon { bool get(); void set(bool value); };
public bool ShowEditingIcon { get; set; }
member this.ShowEditingIcon : bool with get, set
Public Property ShowEditingIcon As Boolean

属性值

如果编辑标志符号可见,则为 true;否则为 falsetrue if the editing glyph is visible; otherwise, false. 默认值为 trueThe default is true.

注解

当当前单元格处于编辑模式并且用户已更改单元格时,行标题将显示一个编辑标志符号,该标志符号看起来像铅笔。The row header will display an editing glyph that looks like a pencil when the current cell is in edit mode and the user has made changes to the cell. 编辑字形使用行标题单元格的 ForeColor 属性进行着色。The editing glyph is colored by using the ForeColor property of the row header cell. 如果没有足够的空间来完全显示该标志符号,则不会呈现该标志符号。The glyph is not rendered if there is not enough space to display it completely. 例如,如果行标题单元格的 Value 属性集,则当文本和字形没有足够的空间时,将删除该标志符号。For example, if the row header cell has its Value property set, the glyph is removed if there is not enough room for both the text and glyph.

编辑字形的显示受虚拟模式下 IsCurrentRowDirty 属性的值控制。The display of the editing glyph is controlled by the value of the IsCurrentRowDirty property in virtual mode. 否则,它由 IsCurrentCellDirty 属性控制。Otherwise, it is controlled by the IsCurrentCellDirty property.

标准字形不公开。The standard glyph is not publicly exposed. 若要自定义标志符号,可以创建自定义 @no__t 0 类。To customize the glyph, you can create a custom DataGridViewRowHeaderCell class.

适用于

另请参阅