DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 DataGridViewTopLeftHeaderCell 的相關資訊提供給協助工具用戶端應用程式。
protected: ref class DataGridViewTopLeftHeaderCell::DataGridViewTopLeftHeaderCellAccessibleObject : System::Windows::Forms::DataGridViewColumnHeaderCell::DataGridViewColumnHeaderCellAccessibleObject
protected class DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject : System.Windows.Forms.DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject
Protected Class DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject
Inherits DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject
- 繼承
-
DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject
備註
Windows Forms包含內建協助工具支援,可讓您的應用程式使用協助工具用戶端應用程式。 協助工具用戶端應用程式的範例包括螢幕放大和檢閱者公用程式、語音輸入公用程式、螢幕鍵盤、替代輸入裝置,以及鍵盤增強公用程式。
類別 DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject 繼承自 類別, AccessibleObject 以提供協助工具用戶端應用程式的相關資訊 DataGridViewTopLeftHeaderCell 。 每個類別都代表 的視覺部分 DataGridView ,例如 DataGridViewColumnHeaderCell 、 DataGridViewRowHeaderCell DataGridViewRow 和 DataGridViewCell - 也包含繼承 AccessibleObject 自 的類別,以提供包含類別的相關資訊,並代表協助工具用戶端應用程式執行動作。
當您想要提供其他資訊,例如控制項的名稱或描述 DataGridView 給協助工具用戶端應用程式時,有一些實例。 提供這項額外資訊的方式有兩種。 若要為現有控制項提供有限的協助工具資訊,請設定控制項的 AccessibleName 和 AccessibleDescription 屬性值,這會向協助工具用戶端應用程式回報。
注意
您應該只在罕見的情況下變更 AccessibleDefaultActionDescription 和 AccessibleRole 屬性值,例如,如果您 DataGridView 看起來像清單。
有時候,您可能需要更多協助工具資訊或不同的協助工具動作,才能包含在您的自訂 DataGridView 或 DataGridViewCell 中。 若要自訂協助工具,您可以撰寫衍生自 DataGridView.DataGridViewAccessibleObject 或 DataGridViewCell.DataGridViewCellAccessibleObject 類別的專屬類別,並覆寫 CreateAccessibilityInstance 方法。 例如,如果您要撰寫實作唯一自訂動作的自訂資料列標頭儲存格,例如儲存格內的特殊點擊測試,您應該建立繼承自 類別的 DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject 類別,並覆寫 CreateAccessibilityInstance 方法。
會 DataGridView 使用 AccessibleRole 值來定義資料表階層,來公開其資料結構。 如需向 Microsoft Active Accessibility 公開資料表的詳細資訊,請參閱 透過 Microsoft Active Accessibility 公開資料表。
建構函式
DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject(DataGridViewTopLeftHeaderCell) |
初始化 DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject 類別的新執行個體。 |
屬性
Bounds |
取得可存取物件的位置和大小。 |
DefaultAction |
取得 DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject 的預設動作描述。 |
Description |
取得描述指定物件之視覺外觀的字串。 並非所有的物件都有描述。 (繼承來源 AccessibleObject) |
Help |
取得主控儲存格之型別和基底型別 (Base Type) 的名稱。 (繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject) |
KeyboardShortcut |
取得可存取物件的快速鍵或便捷鍵 (Access Key)。 (繼承來源 AccessibleObject) |
Name |
取得 DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject 的名稱。 |
Owner |
取得或設定擁有 DataGridViewCell.DataGridViewCellAccessibleObject 的儲存格。 (繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject) |
Parent |
取得 DataGridViewCell.DataGridViewCellAccessibleObject 的父系。 (繼承來源 DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject) |
Role |
取得 DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject 的角色。 (繼承來源 DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject) |
State |
取得 DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject 的狀態。 |
Value |