次の方法で共有


DataGridViewCell.DataGridViewCellAccessibleObject.Select メソッド

定義

選択範囲を変更するか、アクセス可能なオブジェクトのキーボード フォーカスを移動します。

public:
 override void Select(System::Windows::Forms::AccessibleSelection flags);
public override void Select(System.Windows.Forms.AccessibleSelection flags);
override this.Select : System.Windows.Forms.AccessibleSelection -> unit
Public Overrides Sub Select (flags As AccessibleSelection)

パラメーター

例外

Owner プロパティの値はnull

注釈

次の表では、各flags値に対して Select メソッドによって実行されるアクションについて説明します。

パラメーター値 アクション
TakeFocus DataGridViewはフォーカスを取ります。
TakeSelection このDataGridViewCell.DataGridViewCellAccessibleObjectを所有するDataGridViewCellが焦点を当てます。
AddSelection DataGridViewCellSelectedCells プロパティに追加されます。
RemoveSelection DataGridViewCellは、SelectedCells プロパティから削除されます。
その他のすべての AccessibleSelection アクションは実行されません。

適用対象

こちらもご覧ください