共用方式為


UITableViewCell.SetSelected(Boolean, Boolean) 方法

定義

設定儲存格的選取狀態,選擇性地以動畫顯示狀態之間的轉換。

[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 以立即進行轉換。

屬性

備註

選取範圍會變更儲存格標籤、影像和背景的外觀。

適用於