共用方式為


UIView.Tag 屬性

定義

可用來識別特定 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>