Android.Views.View.SetPadding Method
Sets the padding.

Syntax

[Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler")]
public virtual void SetPadding (int left, int top, int right, int bottom)

Parameters

left
the left padding in pixels
top
the top padding in pixels
right
the right padding in pixels
bottom
the bottom padding in pixels

Remarks

Sets the padding. The view may add on the space required to display the scrollbars, depending on the style and visibility of the scrollbars. So the values returned from View.PaddingLeft, View.PaddingTop, View.PaddingRight and View.PaddingBottom may be different from the values set in this call.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1