ShapeDrawable.SetPadding 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
SetPadding(Rect) |
Sets padding for this shape, defined by a Rect object. |
SetPadding(Int32, Int32, Int32, Int32) |
Sets padding for the shape. |
SetPadding(Rect)
Sets padding for this shape, defined by a Rect object.
[Android.Runtime.Register("setPadding", "(Landroid/graphics/Rect;)V", "GetSetPadding_Landroid_graphics_Rect_Handler")]
public virtual void SetPadding (Android.Graphics.Rect? padding);
[<Android.Runtime.Register("setPadding", "(Landroid/graphics/Rect;)V", "GetSetPadding_Landroid_graphics_Rect_Handler")>]
abstract member SetPadding : Android.Graphics.Rect -> unit
override this.SetPadding : Android.Graphics.Rect -> unit
Parameters
- padding
- Rect
- Attributes
Remarks
Sets padding for this shape, defined by a Rect object. Define the padding in the Rect object as: left, top, right, bottom.
Java documentation for android.graphics.drawable.ShapeDrawable.setPadding(android.graphics.Rect)
.
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
SetPadding(Int32, Int32, Int32, Int32)
Sets padding for the shape.
[Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler")]
public virtual void SetPadding (int left, int top, int right, int bottom);
[<Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler")>]
abstract member SetPadding : int * int * int * int -> unit
override this.SetPadding : int * int * int * int -> unit
Parameters
- left
- Int32
padding for the left side (in pixels)
- top
- Int32
padding for the top (in pixels)
- right
- Int32
padding for the right side (in pixels)
- bottom
- Int32
padding for the bottom (in pixels)
- Attributes
Remarks
Sets padding for the shape.
Java documentation for android.graphics.drawable.ShapeDrawable.setPadding(int, int, int, int)
.
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.