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 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應