DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 類別

定義

提供有關協助工具用戶端應用程式之 DataGridViewLinkCell 控制項的資訊。Provides information about a DataGridViewLinkCell control to accessibility client applications.

protected: ref class DataGridViewLinkCell::DataGridViewLinkCellAccessibleObject : System::Windows::Forms::DataGridViewCell::DataGridViewCellAccessibleObject
protected class DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject : System.Windows.Forms.DataGridViewCell.DataGridViewCellAccessibleObject
Protected Class DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject
Inherits DataGridViewCell.DataGridViewCellAccessibleObject
繼承

備註

Windows Forms 包含內建的協助工具支援,可讓您的應用程式與協助工具用戶端應用程式搭配使用。Windows Forms includes built-in accessibility support that allows your application to work with accessibility client applications. 協助工具用戶端應用程式的範例包括螢幕放大鏡和檢閱者公用程式、語音輸入公用程式、螢幕小鍵盤、替代輸入裝置,以及鍵盤增強公用程式。Examples of accessibility client applications include screen enlarger and reviewer utilities, voice input utilities, on-screen keyboards, alternative input devices, and keyboard enhancement utilities.

DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 類別繼承自 AccessibleObject 類別,以提供有關協助工具用戶端應用程式 DataGridViewLinkCell 的資訊。The DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject class inherits from the AccessibleObject class to provide information about a DataGridViewLinkCell to accessibility client applications. 每個代表 DataGridView 視覺效果部分的類別(例如 DataGridViewColumnHeaderCellDataGridViewRowHeaderCellDataGridViewRowDataGridViewCell)也包含繼承自 AccessibleObject 的類別,以提供包含類別的相關資訊,並代表協助工具執行動作用戶端應用程式。Each class that represents a visual part of the DataGridView - such as DataGridViewColumnHeaderCell, DataGridViewRowHeaderCell, DataGridViewRow and DataGridViewCell - also contains a class that inherits from AccessibleObject to provide information about the containing class and perform actions on behalf of accessibility client applications.

在某些情況下,您會想要提供其他資訊(例如 DataGridView 控制項的名稱或描述)給協助工具用戶端應用程式。There are instances when you will want to provide additional information, such as the name or description of the DataGridView control, to accessibility client applications. 有兩種方式可提供這項額外資訊。There are two ways of providing this additional information. 若要為現有的控制項提供有限的協助工具資訊,請設定控制項的 AccessibleName,並 AccessibleDescription 屬性值,這將會回報給協助工具用戶端應用程式。To provide limited accessibility information for existing controls, set the control's AccessibleName and AccessibleDescription property values, which will be reported to accessibility client applications.

注意

只有在罕見的情況下,您才應該變更 AccessibleDefaultActionDescriptionAccessibleRole 屬性值,例如,如果您讓 DataGridView 看起來像是清單。You should change the AccessibleDefaultActionDescription and AccessibleRole property values only in rare situations, such as if you make a DataGridView look like a list.

有時候,您可能需要更多協助工具資訊或不同的協助工具動作,以包含在您的自訂 DataGridViewDataGridViewCell中。Occasionally, you might require more accessibility information or different accessibility actions to be included with your custom DataGridView or DataGridViewCell. 若要自訂存取範圍,您可以撰寫衍生自 DataGridView.DataGridViewAccessibleObjectDataGridViewCell.DataGridViewCellAccessibleObject 類別的自己類別,並覆寫 CreateAccessibilityInstance 方法。To customize accessibility, you can write your own class that derives from the DataGridView.DataGridViewAccessibleObject or DataGridViewCell.DataGridViewCellAccessibleObject classes and override the CreateAccessibilityInstance method. 例如,如果您要撰寫的自訂資料列行首儲存格會執行唯一的自訂動作(例如儲存格內的特殊點擊測試),您應該建立繼承自 DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject 類別的類別,並覆寫 CreateAccessibilityInstance 方法。For example, if you are writing a custom row header cell that implements unique custom actions, such as special hit testing within your cell, you should create a class that inherits from the DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject class and override the CreateAccessibilityInstance method.

DataGridView 會使用 AccessibleRole 值來定義資料表階層,以公開其資料結構。The DataGridView exposes its data structure by using AccessibleRole values to define the data table hierarchy. 如需有關將資料表公開給 Microsoft Active Accessibility 的詳細資訊,請參閱 MSDN library 中的「透過 Microsoft Active Accessibility 公開資料表」 https://msdn.microsoft.com/library。For more information on exposing data tables to Microsoft Active Accessibility, see "Exposing Data Tables through Microsoft Active Accessibility" in the MSDN library at https://msdn.microsoft.com/library.

建構函式

DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject(DataGridViewCell)

初始化 DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 類別的新執行個體。Initializes a new instance of the DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject class.

屬性

Bounds

取得可存取物件的位置和大小。Gets the location and size of the accessible object.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
DefaultAction

取得表示 DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 預設動作的字串。Gets a string that represents the default action of the DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject.

Description

取得描述指定物件之視覺外觀的字串。Gets a string that describes the visual appearance of the specified object. 並非所有的物件都有描述。Not all objects have a description.

(繼承來源 AccessibleObject)
Help

取得主控儲存格之型別和基底型別 (Base Type) 的名稱。Gets the names of the owning cell's type and base type.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
KeyboardShortcut

取得可存取物件的快速鍵或便捷鍵 (Access Key)。Gets the shortcut key or access key for the accessible object.

(繼承來源 AccessibleObject)
Name

取得 DataGridViewCell.DataGridViewCellAccessibleObject 的名稱。Gets the name of the DataGridViewCell.DataGridViewCellAccessibleObject.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
Owner

取得或設定擁有 DataGridViewCell.DataGridViewCellAccessibleObject 的儲存格。Gets or sets the cell that owns the DataGridViewCell.DataGridViewCellAccessibleObject.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
Parent

取得 DataGridViewCell.DataGridViewCellAccessibleObject 的父代 (Parent)。Gets the parent of the DataGridViewCell.DataGridViewCellAccessibleObject.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
Role

取得 DataGridViewCell.DataGridViewCellAccessibleObject 的角色。Gets the role of the DataGridViewCell.DataGridViewCellAccessibleObject.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
State

取得 DataGridViewCell.DataGridViewCellAccessibleObject 的狀態。Gets the state of the DataGridViewCell.DataGridViewCellAccessibleObject.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
Value

取得或設定字串,代表主控儲存格的格式值。Gets or sets a string representing the formatted value of the owning cell.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)

方法

CreateObjRef(Type)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(繼承來源 MarshalByRefObject)
DoDefaultAction()

執行 DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 的預設動作。Performs the default action of the DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetChild(Int32)

傳回與指定索引相對應的可存取物件。Returns the accessible object corresponding to the specified index.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
GetChildCount()

取得屬於 DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject 的子可存取物件的數目。Gets the number of child accessible objects that belong to the DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject.

GetFocused()

傳回具有鍵盤焦點的可存取子物件。Returns the child accessible object that has keyboard focus.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetHelpTopic(String)

取得說明主題識別項的識別項,以及與這個可存取物件相關之通往說明檔的路徑。Gets an identifier for a Help topic identifier and the path to the Help file associated with this accessible object.

(繼承來源 AccessibleObject)
GetLifetimeService()

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
GetSelected()

傳回目前所選的可存取子物件。Returns the child accessible object that is currently selected.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
HitTest(Int32, Int32)

擷取位於指定螢幕座標的子物件。Retrieves the child object at the specified screen coordinates.

(繼承來源 AccessibleObject)
InitializeLifetimeService()

取得存留期服務物件,以控制這個執行個體的存留期原則。Obtains a lifetime service object to control the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
MemberwiseClone(Boolean)

建立目前 MarshalByRefObject 物件的淺層複本。Creates a shallow copy of the current MarshalByRefObject object.

(繼承來源 MarshalByRefObject)
Navigate(AccessibleNavigation)

可巡覽到另一個可存取物件。Navigates to another accessible object.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
RaiseAutomationNotification(AutomationNotificationKind, AutomationNotificationProcessing, String)

引發使用者介面自動化通知事件。Raises the UI automation notification event.

(繼承來源 AccessibleObject)
RaiseLiveRegionChanged()

引發 LiveRegionChanged 使用者介面自動化事件。Raises the LiveRegionChanged UI automation event.

(繼承來源 AccessibleObject)
Select(AccessibleSelection)

修改選取或者移動可存取物件的鍵盤焦點。Modifies the selection or moves the keyboard focus of the accessible object.

(繼承來源 DataGridViewCell.DataGridViewCellAccessibleObject)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
UseStdAccessibleObjects(IntPtr)

根據物件的控制代碼,將物件與 AccessibleObject 的執行個體產生關聯。Associates an object with an instance of an AccessibleObject based on the handle of the object.

(繼承來源 AccessibleObject)
UseStdAccessibleObjects(IntPtr, Int32)

根據物件的控制代碼和物件 ID,將物件與 AccessibleObject 的執行個體產生關聯。Associates an object with an instance of an AccessibleObject based on the handle and the object id of the object.

(繼承來源 AccessibleObject)

明確介面實作

IAccessible.accChildCount

取得屬於這個物件的子介面數目。Gets the number of child interfaces that belong to this object. 如需這個成員的說明,請參閱 accChildCountFor a description of this member, see accChildCount.

(繼承來源 AccessibleObject)
IAccessible.accDoDefaultAction(Object)

執行指定物件的預設動作。Performs the specified object's default action. 並非所有的物件都有預設動作。Not all objects have a default action. 如需這個成員的說明,請參閱 accDoDefaultAction(Object)For a description of this member, see accDoDefaultAction(Object).

(繼承來源 AccessibleObject)
IAccessible.accFocus

取得具有鍵盤焦點的物件。Gets the object that has the keyboard focus. 如需這個成員的說明,請參閱 accFocusFor a description of this member, see accFocus.

(繼承來源 AccessibleObject)
IAccessible.accHitTest(Int32, Int32)

取得位於指定螢幕座標的子物件。Gets the child object at the specified screen coordinates. 如需這個成員的說明,請參閱 accHitTest(Int32, Int32)For a description of this member, see accHitTest(Int32, Int32).

(繼承來源 AccessibleObject)
IAccessible.accLocation(Int32, Int32, Int32, Int32, Object)

取得物件的目前螢幕位置。Gets the object's current screen location. 如需這個成員的說明,請參閱 accLocation(Int32, Int32, Int32, Int32, Object)For a description of this member, see accLocation(Int32, Int32, Int32, Int32, Object).

(繼承來源 AccessibleObject)
IAccessible.accNavigate(Int32, Object)

巡覽至相對於目前物件的可存取物件。Navigates to an accessible object relative to the current object. 如需這個成員的說明,請參閱 accNavigate(Int32, Object)For a description of this member, see accNavigate(Int32, Object).

(繼承來源 AccessibleObject)
IAccessible.accParent

取得這個物件的可存取父物件。Gets the parent accessible object of this object. 如需這個成員的說明,請參閱 accParentFor a description of this member, see accParent.

(繼承來源 AccessibleObject)
IAccessible.accSelect(Int32, Object)

修改選取或者移動可存取物件的鍵盤焦點。Modifies the selection or moves the keyboard focus of the accessible object. 如需這個成員的說明,請參閱 accSelect(Int32, Object)For a description of this member, see accSelect(Int32, Object).

(繼承來源 AccessibleObject)
IAccessible.accSelection

取得可存取物件的選定子物件。Gets the selected child objects of an accessible object. 如需這個成員的說明,請參閱 accSelectionFor a description of this member, see accSelection.

(繼承來源 AccessibleObject)
IAccessible.get_accChild(Object)

擷取指定的子物件。Retrieves a specified child object.

(繼承來源 AccessibleObject)
IAccessible.get_accDefaultAction(Object)

傳回字串,指出指定之物件的預設動作。Returns a string that indicates the specified object's default action.

(繼承來源 AccessibleObject)
IAccessible.get_accDescription(Object)

傳回字串,描述指定之可存取物件的視覺外觀。Returns a string that describes the visual appearance of the specified accessible object.

(繼承來源 AccessibleObject)
IAccessible.get_accHelp(Object)

擷取與指定之可存取物件相關聯 WinHelp 檔案的完整路徑。Retrieves the full path of the WinHelp file that is associated with the specified accessible object.

(繼承來源 AccessibleObject)
IAccessible.get_accHelpTopic(String, Object)

擷取與指定之物件相關聯 WinHelp 檔案的完整路徑,以及檔案中特定主題的識別碼。Retrieves the full path of a WinHelp file that is associated with the specified object along with the identifier of a specific topic in the file.

(繼承來源 AccessibleObject)
IAccessible.get_accKeyboardShortcut(Object)

擷取指定之物件的鍵盤快速鍵或存取金鑰。Retrieves the specified object's keyboard shortcut or access key.

(繼承來源 AccessibleObject)
IAccessible.get_accName(Object)

擷取指定之物件的名稱。Retrieves the name of the specified object.

(繼承來源 AccessibleObject)
IAccessible.get_accRole(Object)

擷取描述指定之物件角色的資訊。Retrieves information that describes the role of the specified object.

(繼承來源 AccessibleObject)
IAccessible.get_accState(Object)

擷取指定之可存取物件的目前狀態。Retrieves the current state of the specified accessible object.

(繼承來源 AccessibleObject)
IAccessible.get_accValue(Object)

擷取指定之可存取物件的值。Retrieves the value of the specified accessible object. 並非所有物件都有值。Not all objects have a value.

(繼承來源 AccessibleObject)
IAccessible.set_accName(Object, String)

將新的可存取名稱指派給指定項目。Assigns a new accessible name to the specified element.

(繼承來源 AccessibleObject)
IAccessible.set_accValue(Object, String)

將新的值指派給指定項目。Assigns a new value to the specified element.

(繼承來源 AccessibleObject)
IReflect.GetField(String, BindingFlags)

取得對應到指定欄位和繫結旗標的 FieldInfo 物件。Gets the FieldInfo object corresponding to the specified field and binding flag. 如需這個成員的說明,請參閱 GetField(String, BindingFlags)For a description of this member, see GetField(String, BindingFlags).

(繼承來源 AccessibleObject)
IReflect.GetFields(BindingFlags)

取得對應到目前類別的所有欄位之 FieldInfo 物件陣列。Gets an array of FieldInfo objects corresponding to all fields of the current class. 如需這個成員的說明,請參閱 GetFields(BindingFlags)For a description of this member, see GetFields(BindingFlags).

(繼承來源 AccessibleObject)
IReflect.GetMember(String, BindingFlags)

取得 MemberInfo 物件陣列,其會對應到所有公用成員或所有符合指定名稱的成員。Gets an array of MemberInfo objects corresponding to all public members or to all members that match a specified name. 如需這個成員的說明,請參閱 GetMember(String, BindingFlags)For a description of this member, see GetMember(String, BindingFlags).

(繼承來源 AccessibleObject)
IReflect.GetMembers(BindingFlags)

取得 MemberInfo 物件陣列,其會對應到所有公用成員或目前類別的所有成員。Gets an array of MemberInfo objects corresponding either to all public members or to all members of the current class. 如需這個成員的說明,請參閱 GetMembers(BindingFlags)For a description of this member, see GetMembers(BindingFlags).

(繼承來源 AccessibleObject)
IReflect.GetMethod(String, BindingFlags)

取得 MethodInfo 物件,其會對應到指定搜尋條件約束下的指定方法。Gets a MethodInfo object corresponding to a specified method under specified search constraints. 如需這個成員的說明,請參閱 GetMethod(String, BindingFlags)For a description of this member, see GetMethod(String, BindingFlags).

(繼承來源 AccessibleObject)
IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

使用 Type 陣列從多載方法中選擇,取得對應到指定方法的 MethodInfo 物件。Gets a MethodInfo object corresponding to a specified method, using a Type array to choose from among overloaded methods. 如需這個成員的說明,請參閱 GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])For a description of this member, see GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]).

(繼承來源 AccessibleObject)
IReflect.GetMethods(BindingFlags)

取得包含所有公用方法或目前類別的所有方法的 MethodInfo 物件陣列。Gets an array of MethodInfo objects with all public methods or all methods of the current class. 如需這個成員的說明,請參閱 GetMethods(BindingFlags)For a description of this member, see GetMethods(BindingFlags).

(繼承來源 AccessibleObject)
IReflect.GetProperties(BindingFlags)

取得 PropertyInfo 物件陣列,其會對應到所有公用屬性或目前類別的所有屬性。Gets an array of PropertyInfo objects corresponding to all public properties or to all properties of the current class. 如需這個成員的說明,請參閱 GetProperties(BindingFlags)For a description of this member, see GetProperties(BindingFlags).

(繼承來源 AccessibleObject)
IReflect.GetProperty(String, BindingFlags)

取得 PropertyInfo 物件,其會對應到指定搜尋條件約束下的指定屬性。Gets a PropertyInfo object corresponding to a specified property under specified search constraints. 如需這個成員的說明,請參閱 GetProperty(String, BindingFlags)For a description of this member, see GetProperty(String, BindingFlags).

(繼承來源 AccessibleObject)
IReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

取得 PropertyInfo 物件,其會對應到具有指定搜尋條件約束的指定屬性。Gets a PropertyInfo object corresponding to a specified property with specified search constraints. 如需這個成員的說明,請參閱 GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])For a description of this member, see GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]).

(繼承來源 AccessibleObject)
IReflect.InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])

叫用指定成員。Invokes a specified member. 如需這個成員的說明,請參閱 InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])For a description of this member, see InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]).

(繼承來源 AccessibleObject)
IReflect.UnderlyingSystemType

取得表示 IReflect 物件的基礎型別。Gets the underlying type that represents the IReflect object. 如需這個成員的說明,請參閱 UnderlyingSystemTypeFor a description of this member, see UnderlyingSystemType.

(繼承來源 AccessibleObject)

適用於

另請參閱