共用方式為


BaseBooleanImageElement.CellKey 屬性

定義

覆寫 GetCell 方法的子類別也應該覆寫這個方法

protected override Foundation.NSString CellKey { get; }
member this.CellKey : Foundation.NSString

屬性值

唯一的 NSString 值,通常基礎值會配置為靜態變數。

備註

這個方法應該會傳回傳遞至 UITableView.DequeueReusableCell 的金鑰。 如果您的程式碼覆 GetCell(UITableView) 寫 方法來變更儲存格,您也必須覆寫這個方法,並傳回它的唯一索引鍵。 這適用于大部分的子類別,但有一些例外狀況:StringElement 和各種衍生類別不會使用此設定,因為它們需要更廣泛的索引鍵以供不同用途使用,因此,如果您嘗試覆寫 StringElement 或 StyledStringElement,則需要查看這些類別的原始程式碼。

適用於