共用方式為


NSCollectionView.NewItemForRepresentedObject(NSObject) 方法

定義

[Foundation.Export("newItemForRepresentedObject:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.None, "Use 'NSCollectionViewDataSource.GetItem()' instead.")]
public virtual AppKit.NSCollectionViewItem NewItemForRepresentedObject (Foundation.NSObject obj);
abstract member NewItemForRepresentedObject : Foundation.NSObject -> AppKit.NSCollectionViewItem
override this.NewItemForRepresentedObject : Foundation.NSObject -> AppKit.NSCollectionViewItem

參數

obj
NSObject

傳回

屬性

適用於