DataGridViewRow.DataGridViewRowAccessibleObject.GetSelected 方法

定义

获取辅助性对象,该对象表示当前选定的 DataGridViewCell 对象。Gets an accessible object that represents the currently selected DataGridViewCell objects.

public:
 override System::Windows::Forms::AccessibleObject ^ GetSelected();
public override System.Windows.Forms.AccessibleObject GetSelected ();
override this.GetSelected : unit -> System.Windows.Forms.AccessibleObject
Public Overrides Function GetSelected () As AccessibleObject

返回

一个辅助性对象,该对象表示 DataGridViewCell 中当前选定的 DataGridViewRow 对象。An accessible object that represents the currently selected DataGridViewCell objects in the DataGridViewRow.

异常

Owner 属性的值为 nullThe value of the Owner property is null.

适用于

另请参阅