DataGridViewCheckBoxCell.GetEditingCellFormattedValue 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当单元格处于编辑模式时获取其格式化值。
public:
virtual System::Object ^ GetEditingCellFormattedValue(System::Windows::Forms::DataGridViewDataErrorContexts context);
public virtual 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 值的按位组合,描述发生任何格式设置错误的上下文。
返回
Object,表示所编辑单元格的格式化值。
实现
例外
FormattedValueType 属性值为 null
。
注解
如果 context
包含 ClipboardContent 值,此方法将返回一个 Object ,可强制转换为 String 值的表示形式。 否则,此方法将 Boolean 返回 或 值 CheckState ,具体取决于 属性的值 FormattedValueType 。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈