TextView.SetCompoundDrawablesWithIntrinsicBounds 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetCompoundDrawablesWithIntrinsicBounds(Int32, Int32, Int32, Int32) |
將 Drawables (如果有的話)設定為出現在文字的左邊、上方、右邊和下方。 |
| SetCompoundDrawablesWithIntrinsicBounds(Drawable, Drawable, Drawable, Drawable) |
將 Drawables (如果有的話)設定為出現在文字的左邊、上方、右邊和下方。 |
SetCompoundDrawablesWithIntrinsicBounds(Int32, Int32, Int32, Int32)
將 Drawables (如果有的話)設定為出現在文字的左邊、上方、右邊和下方。
[Android.Runtime.Register("setCompoundDrawablesWithIntrinsicBounds", "(IIII)V", "GetSetCompoundDrawablesWithIntrinsicBounds_IIIIHandler")]
public virtual void SetCompoundDrawablesWithIntrinsicBounds(int left, int top, int right, int bottom);
[<Android.Runtime.Register("setCompoundDrawablesWithIntrinsicBounds", "(IIII)V", "GetSetCompoundDrawablesWithIntrinsicBounds_IIIIHandler")>]
abstract member SetCompoundDrawablesWithIntrinsicBounds : int * int * int * int -> unit
override this.SetCompoundDrawablesWithIntrinsicBounds : int * int * int * int -> unit
參數
- left
- Int32
左邊的資源識別碼為可繪製。
- top
- Int32
頂端可繪製的資源識別碼。
- right
- Int32
右可繪製資源識別碼。
- bottom
- Int32
底部可繪製的資源識別碼。
- 屬性
備註
將 Drawables (如果有的話)設定為出現在文字的左邊、上方、右邊和下方。 如果你不想在 Drawable 上,就用 0。 可繪製的界限將設為其內在界限。
呼叫此方法會覆寫先前使用 #setCompoundDrawablesRelative 或相關方法設定的任何可繪圖物件。
Java 文件 android.widget.TextView.setCompoundDrawablesWithIntrinsicBounds(int, int, int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
SetCompoundDrawablesWithIntrinsicBounds(Drawable, Drawable, Drawable, Drawable)
將 Drawables (如果有的話)設定為出現在文字的左邊、上方、右邊和下方。
[Android.Runtime.Register("setCompoundDrawablesWithIntrinsicBounds", "(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V", "GetSetCompoundDrawablesWithIntrinsicBounds_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Handler")]
public virtual void SetCompoundDrawablesWithIntrinsicBounds(Android.Graphics.Drawables.Drawable? left, Android.Graphics.Drawables.Drawable? top, Android.Graphics.Drawables.Drawable? right, Android.Graphics.Drawables.Drawable? bottom);
[<Android.Runtime.Register("setCompoundDrawablesWithIntrinsicBounds", "(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V", "GetSetCompoundDrawablesWithIntrinsicBounds_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_Handler")>]
abstract member SetCompoundDrawablesWithIntrinsicBounds : Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable -> unit
override this.SetCompoundDrawablesWithIntrinsicBounds : Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable * Android.Graphics.Drawables.Drawable -> unit
參數
- left
- Drawable
左邊的資源識別碼為可繪製。
- top
- Drawable
頂端可繪製的資源識別碼。
- right
- Drawable
右可繪製資源識別碼。
- bottom
- Drawable
底部可繪製的資源識別碼。
- 屬性
備註
將 Drawables (如果有的話)設定為出現在文字的左邊、上方、右邊和下方。 如果你不想在那邊有可繪製物件,就用 null 它。 可繪製的界限將設為其內在界限。
呼叫此方法會覆寫先前使用 #setCompoundDrawablesRelative 或相關方法設定的任何可繪圖物件。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。