DataGridViewCell.DataGridViewCellAccessibleObject.Select 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
修改選取範圍或移動可存取物件的鍵盤焦點。
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)
參數
- flags
- AccessibleSelection
這是其中一項 AccessibleSelection 價值。
例外狀況
該財產的 Owner 價值為 null。
備註
下表描述方法對每個flags值執行Select的動作。
| 參數值 | Action |
|---|---|
| TakeFocus | 這 DataGridView 需要專注。 |
| TakeSelection | DataGridViewCell擁有這一切DataGridViewCell.DataGridViewCellAccessibleObject的人需要專注。 |
| AddSelection | 該 DataGridViewCell 資產被加入 SelectedCells 物業。 |
| RemoveSelection | 它 DataGridViewCell 被從物業中移除 SelectedCells 。 |
| 其他 AccessibleSelection 所有數值 | 沒有採取任何行動。 |