UITableViewCell.SetSelected(Boolean, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定儲存格的選取狀態,選擇性地以動畫顯示狀態之間的轉換。
[Foundation.Export("setSelected:animated:")]
public virtual void SetSelected (bool selected, bool animated);
abstract member SetSelected : bool * bool -> unit
override this.SetSelected : bool * bool -> unit
參數
- selected
- Boolean
true
表示選取儲存格, false
以取消選取。
- animated
- Boolean
true
以動畫顯示選取的轉換, false
以立即進行轉換。
- 屬性
備註
選取範圍會變更儲存格標籤、影像和背景的外觀。