UIView.Tag 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
可用來識別特定 UIView 實例的整數。
public virtual nint Tag { [Foundation.Export("tag")] get; [Foundation.Export("setTag:")] set; }
member this.Tag : nint with get, set
屬性值
System.System.IntPtr
System.nativeint
預設值為 0。
- 屬性
備註
這個屬性的穩定性和唯一性完全是應用程式開發人員的責任。
適用於
另請參閱
- <xref:UIKit.UIView.ViewWithTag>