UIView.Tag Property

Definition

An integer that can be used to identify a specific UIView instance.

public virtual nint Tag { [Foundation.Export("tag")] get; [Foundation.Export("setTag:")] set; }
member this.Tag : nint with get, set

Property Value

System.System.IntPtr System.nativeint

The default value is 0.

Attributes

Remarks

The stability and uniqueness of this property is entirely the responsibility of the application developer.

Applies to

See also

  • <xref:UIKit.UIView.ViewWithTag>