語言

IAttributeSet.AttributeCount 屬性

定義

回傳該集合中可用的屬性數量。

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

屬性值

正整數,或若集合為空則為 0。

屬性

備註

回傳該集合中可用的屬性數量。

另見 XmlPullParser.getAttributeCount(),此方法在解析已編譯的 XML 檔案時對應。

Android 參考資料。android.util.AttributeSet.getAttributeCount

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於