Language

IAttributeSet.AttributeCount Property

Definition

Returns the number of attributes available in the set.

public int AttributeCount { [Android.Runtime.Register("getAttributeCount", "()I", "GetGetAttributeCountHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("getAttributeCount", "()I", "GetGetAttributeCountHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.AttributeCount : int

Property Value

A positive integer, or 0 if the set is empty.

Attributes

Remarks

Returns the number of attributes available in the set.

See also XmlPullParser.getAttributeCount(), which this method corresponds to when parsing a compiled XML file.

Android reference for android.util.AttributeSet.getAttributeCount.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to