DataGridViewColumnHeaderCell.CreateAccessibilityInstance 方法

定义

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

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

返回

AccessibleObject

AccessibleObject 的新 DataGridViewColumnHeaderCellA new AccessibleObject for the DataGridViewColumnHeaderCell.

注解

如果不显式调用 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 一起安装的程序集的引用。To get or set AccessibilityObject, you must add a reference to the Accessibility assembly installed with the .NET Framework.

适用于

另请参阅