DataGridColumn.OnCoerceIsReadOnly(Boolean) DataGridColumn.OnCoerceIsReadOnly(Boolean) DataGridColumn.OnCoerceIsReadOnly(Boolean) DataGridColumn.OnCoerceIsReadOnly(Boolean) Method

定義

根據包含此資料行之 IsReadOnly 的屬性規則,判斷 DataGrid 屬性的值。Determines the value of the IsReadOnly property based on the property rules of the DataGrid that contains this column.

protected:
 virtual bool OnCoerceIsReadOnly(bool baseValue);
protected virtual bool OnCoerceIsReadOnly (bool baseValue);
abstract member OnCoerceIsReadOnly : bool -> bool
override this.OnCoerceIsReadOnly : bool -> bool
Protected Overridable Function OnCoerceIsReadOnly (baseValue As Boolean) As Boolean

參數

baseValue
Boolean Boolean Boolean Boolean

已傳遞至委派的值。The value that was passed to the delegate.

傳回

如果根據 DataGrid 的規則無法編輯資料行中的儲存格,則為 true,否則為 falsetrue if cells in the column cannot be edited based on rules from the DataGrid; otherwise, false.

適用於