DataGridViewCheckBoxCell.GetEditingCellFormattedValue(DataGridViewDataErrorContexts) 方法

定義

取得儲存格處於編輯模式時的格式值。Gets the formatted value of the cell while it is in edit mode.

public:
 virtual System::Object ^ GetEditingCellFormattedValue(System::Windows::Forms::DataGridViewDataErrorContexts context);
public virtual object GetEditingCellFormattedValue (System.Windows.Forms.DataGridViewDataErrorContexts context);
abstract member GetEditingCellFormattedValue : System.Windows.Forms.DataGridViewDataErrorContexts -> obj
override this.GetEditingCellFormattedValue : System.Windows.Forms.DataGridViewDataErrorContexts -> obj
Public Overridable Function GetEditingCellFormattedValue (context As DataGridViewDataErrorContexts) As Object

參數

context
DataGridViewDataErrorContexts

DataGridViewDataErrorContexts 值的位元 (Bitwise) 組合,描述發生任何格式化錯誤的內容。A bitwise combination of DataGridViewDataErrorContexts values that describes the context in which any formatting error occurs.

傳回

Object

Object,表示編輯儲存格的格式值。An Object representing the formatted value of the editing cell.

實作

例外狀況

FormattedValueType 屬性值為 nullThe FormattedValueType property value is null.

備註

context 包含 ClipboardContent 這個值時,這個方法會傳回, Object 您可以將它轉換成 String 值的表示。When context includes the ClipboardContent value, this method returns an Object that you can cast to a String representation of the value. 否則,這個方法會 Boolean CheckState 根據屬性的值,傳回或值 FormattedValueTypeOtherwise, this method returns a Boolean or a CheckState value, depending on the value of the FormattedValueType property.

適用於

另請參閱