語言

Drawable.IntrinsicWidth 屬性

定義

回傳可繪圖的內在寬度。

public virtual int IntrinsicWidth { [Android.Runtime.Register("getIntrinsicWidth", "()I", "GetGetIntrinsicWidthHandler")] get; }
[<get: Android.Runtime.Register("getIntrinsicWidth", "()I", "GetGetIntrinsicWidthHandler")>]
member this.IntrinsicWidth : int

屬性值

內在寬度,若無內在寬度則為 -1

屬性

備註

回傳可繪圖的內在寬度。

內在寬度是指可繪圖物希望鋪設的寬度,包括任何固有的填充物。 若繪製圖沒有內在寬度,例如純色,此方法回傳 -1。

Java 文件 android.graphics.drawable.Drawable.getIntrinsicWidth()。

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

適用於