Partager via


Switch.SwitchPadding Property

Definition

Get the amount of horizontal padding between the switch and the associated text. -or- Set the amount of horizontal padding between the switch and the associated text.

public virtual int SwitchPadding { [Android.Runtime.Register("getSwitchPadding", "()I", "GetGetSwitchPaddingHandler")] get; [Android.Runtime.Register("setSwitchPadding", "(I)V", "GetSetSwitchPadding_IHandler")] set; }
[<get: Android.Runtime.Register("getSwitchPadding", "()I", "GetGetSwitchPaddingHandler")>]
[<set: Android.Runtime.Register("setSwitchPadding", "(I)V", "GetSetSwitchPadding_IHandler")>]
member this.SwitchPadding : int with get, set

Property Value

Amount of padding in pixels

Attributes

Remarks

Property getter documentation:

Get the amount of horizontal padding between the switch and the associated text.

Java documentation for android.widget.Switch.getSwitchPadding().

Property setter documentation:

Set the amount of horizontal padding between the switch and the associated text.

Java documentation for android.widget.Switch.setSwitchPadding(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.

Applies to