IPropertyMapper.MapShort(String, Int32) 方法

定義

將字串名稱對應至基本簡短屬性的整數標識碼。

[Android.Runtime.Register("mapShort", "(Ljava/lang/String;I)I", "GetMapShort_Ljava_lang_String_IHandler:Android.Views.Inspectors.IPropertyMapperInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)]
public int MapShort (string name, int attributeId);
[<Android.Runtime.Register("mapShort", "(Ljava/lang/String;I)I", "GetMapShort_Ljava_lang_String_IHandler:Android.Views.Inspectors.IPropertyMapperInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)>]
abstract member MapShort : string * int -> int

參數

name
String

屬性的名稱

attributeId
Int32

此屬性的屬性資源識別碼,或 Resources#ID_NULL

傳回

屬性的整數標識碼

屬性

備註

將字串名稱對應至基本簡短屬性的整數標識碼。

android.view.inspector.PropertyMapper.mapShort(java.lang.String, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於