TextView.SetCompoundDrawablesWithIntrinsicBounds Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetCompoundDrawablesWithIntrinsicBounds(Drawable, Drawable, Drawable, Drawable) |
Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text. |
SetCompoundDrawablesWithIntrinsicBounds(Int32, Int32, Int32, Int32) |
Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text. |
SetCompoundDrawablesWithIntrinsicBounds(Drawable, Drawable, Drawable, Drawable)
Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text.
[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
Parameters
- left
- Drawable
Resource identifier of the left Drawable.
- top
- Drawable
Resource identifier of the top Drawable.
- right
- Drawable
Resource identifier of the right Drawable.
- bottom
- Drawable
Resource identifier of the bottom Drawable.
- Attributes
Remarks
Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text. Use null
if you do not want a Drawable there. The Drawables' bounds will be set to their intrinsic bounds.
Calling this method will overwrite any Drawables previously set using #setCompoundDrawablesRelative
or related methods.
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
SetCompoundDrawablesWithIntrinsicBounds(Int32, Int32, Int32, Int32)
Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text.
[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
Parameters
- left
- Int32
Resource identifier of the left Drawable.
- top
- Int32
Resource identifier of the top Drawable.
- right
- Int32
Resource identifier of the right Drawable.
- bottom
- Int32
Resource identifier of the bottom Drawable.
- Attributes
Remarks
Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text. Use 0 if you do not want a Drawable there. The Drawables' bounds will be set to their intrinsic bounds.
Calling this method will overwrite any Drawables previously set using #setCompoundDrawablesRelative
or related methods.
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.