DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 DataGridViewButtonCell 的相關資訊提供給協助工具用戶端應用程式。
protected: ref class DataGridViewButtonCell::DataGridViewButtonCellAccessibleObject : System::Windows::Forms::DataGridViewCell::DataGridViewCellAccessibleObject
protected class DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject : System.Windows.Forms.DataGridViewCell.DataGridViewCellAccessibleObject
Protected Class DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject
Inherits DataGridViewCell.DataGridViewCellAccessibleObject
- 繼承
-
DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject
備註
Windows Forms包含內建協助工具支援,可讓您的應用程式使用協助工具用戶端應用程式。 協助工具用戶端應用程式的範例包括螢幕放大和檢閱者公用程式、語音輸入公用程式、螢幕鍵盤、替代輸入裝置,以及鍵盤增強公用程式。
類別 DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject 繼承自 類別, AccessibleObject 以提供協助工具用戶端應用程式的相關資訊 DataGridViewButtonCell 。 每個類別都代表 的視覺部分 DataGridView ,例如 DataGridViewColumnHeaderCell 、 DataGridViewRowHeaderCellDataGridViewRow 和 DataGridViewCell - 也包含繼承 AccessibleObject 自 的類別,以提供包含類別的相關資訊,並代表協助工具用戶端應用程式執行動作。
當您想要提供其他資訊,例如控制項的名稱或描述 DataGridView 給協助工具用戶端應用程式時,有一些實例。 提供這項額外資訊的方式有兩種。 若要為現有控制項提供有限的協助工具資訊,請設定控制項的 AccessibleName 和 AccessibleDescription 屬性值,這會向協助工具用戶端應用程式回報。
注意
您應該只在罕見的情況下變更 AccessibleDefaultActionDescription 和 AccessibleRole 屬性值,例如,如果您 DataGridView 看起來像清單。
有時候,您可能需要更多協助工具資訊或不同的協助工具動作,才能包含在您的自訂 DataGridView 或 DataGridViewCell 中。 若要自訂協助工具,您可以撰寫衍生自 DataGridView.DataGridViewAccessibleObject 或 DataGridViewCell.DataGridViewCellAccessibleObject 類別的專屬類別,並覆寫 CreateAccessibilityInstance 方法。 例如,如果您要撰寫實作唯一自訂動作的自訂資料列標頭儲存格,例如儲存格內的特殊點擊測試,您應該建立繼承自 類別的 DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject 類別,並覆寫 CreateAccessibilityInstance 方法。
會 DataGridView 使用 AccessibleRole 值來定義資料表階層,來公開其資料結構。 如需將資料表公開至Microsoft作用中協助工具的詳細資訊,請參閱透過Microsoft作用中協助工具公開資料表。
建構函式
DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject(DataGridViewCell) |
初始化 DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject 類別的新執行個體。 |
屬性
方法
明確介面實作
適用於
另請參閱
- DataGridView
- DataGridViewButtonCell
- AccessibleObject
- DataGridViewColumnHeaderCell
- DataGridViewRowHeaderCell
- DataGridViewRow
- DataGridViewCell
- AccessibleName
- AccessibleDescription
- AccessibleDefaultActionDescription
- AccessibleRole
- CreateAccessibilityInstance()
- DataGridView.DataGridViewAccessibleObject
- DataGridViewCell.DataGridViewCellAccessibleObject
- DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject
- CreateAccessibilityInstance()
- AccessibleRole
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應