DataGridViewTextBoxCell.CreateAccessibilityInstance 方法

定义

为此 AccessibleObject 实例创建新 DataGridViewTextBoxCellCreates a new AccessibleObject for this DataGridViewTextBoxCell instance.

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

返回

支持 ControlType UI 自动化属性的 AccessibleObject 实例。An AccessibleObject instance that supports the ControlType UI Automation property.

注解

CreateAccessibilityInstance 方法返回的 AccessibleObject 对象仅支持 ControlType UI 自动化属性,该属性仅适用于从 .NET Framework 4.7.2 开始重新编译为 .NET Framework 目标版本的应用程序。The AccessibleObject object returned by the CreateAccessibilityInstance method supports the ControlType UI automation property only in applications that are recompiled to target versions of the .NET Framework starting with .NET Framework 4.7.2. 面向 .NET Framework 早期版本但在 .NET Framework 4.7.2 上运行的应用程序可以通过兼容性开关选择使用此功能。Applications that target an earlier version of the .NET Framework but are running on .NET Framework 4.7.2 can opt in to this feature by using a compatibility switch. 有关其他信息,请参阅.NET Framework 中辅助功能的新增功能For additional information, see What's New in Accessibility in the .NET Framework.

适用于