IDataGridViewEditingCell.GetEditingCellFormattedValue 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索单元格的格式化值。
public:
System::Object ^ GetEditingCellFormattedValue(System::Windows::Forms::DataGridViewDataErrorContexts context);
public object GetEditingCellFormattedValue (System.Windows.Forms.DataGridViewDataErrorContexts context);
public object? GetEditingCellFormattedValue (System.Windows.Forms.DataGridViewDataErrorContexts context);
abstract member GetEditingCellFormattedValue : System.Windows.Forms.DataGridViewDataErrorContexts -> obj
Public Function GetEditingCellFormattedValue (context As DataGridViewDataErrorContexts) As Object
参数
- context
- DataGridViewDataErrorContexts
DataGridViewDataErrorContexts 值的按位组合,它指定需要数据的上下文。
返回
一个 Object,表示单元格内容的格式化版本。
注解
带格式的值表示在单元格的用户界面中显示的值。 带格式的值在绝对值甚至数据类型上可能与单元格中包含的实际值不同。
若要设置单元格的格式化值,请使用 EditingCellFormattedValue 属性。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈