DataGridViewCell.CreateAccessibilityInstance 方法

定义

DataGridViewCell 创建一个新的可访问对象。Creates a new accessible object for the DataGridViewCell.

protected:
 virtual System::Windows::Forms::AccessibleObject ^ CreateAccessibilityInstance();
protected virtual System.Windows.Forms.AccessibleObject CreateAccessibilityInstance ();
abstract member CreateAccessibilityInstance : unit -> System.Windows.Forms.AccessibleObject
override this.CreateAccessibilityInstance : unit -> System.Windows.Forms.AccessibleObject
Protected Overridable Function CreateAccessibilityInstance () As AccessibleObject

返回

AccessibleObject

DataGridViewCell.DataGridViewCellAccessibleObject 的新 DataGridViewCellA new DataGridViewCell.DataGridViewCellAccessibleObject for the DataGridViewCell.

注解

如果不显式调用 CreateAccessibilityInstance 方法,则在引用 AccessibilityObject 属性时将会调用此方法。If you do not explicitly call the CreateAccessibilityInstance method, it will be called when the AccessibilityObject property is referenced.

备注

若要获取或设置 AccessibilityObject ,你必须添加对 Accessibility 随安装的程序集的引用 .NET Framework.NET FrameworkTo get or set AccessibilityObject, you must add a reference to the Accessibility assembly installed with the .NET Framework.NET Framework.

适用于

另请参阅