Partager via


GradientDrawable.SetOrientation(GradientDrawable+Orientation) Method

Definition

Sets the orientation of the gradient defined in this drawable.

[Android.Runtime.Register("setOrientation", "(Landroid/graphics/drawable/GradientDrawable$Orientation;)V", "GetSetOrientation_Landroid_graphics_drawable_GradientDrawable_Orientation_Handler")]
public virtual void SetOrientation (Android.Graphics.Drawables.GradientDrawable.Orientation? orientation);
[<Android.Runtime.Register("setOrientation", "(Landroid/graphics/drawable/GradientDrawable$Orientation;)V", "GetSetOrientation_Landroid_graphics_drawable_GradientDrawable_Orientation_Handler")>]
abstract member SetOrientation : Android.Graphics.Drawables.GradientDrawable.Orientation -> unit
override this.SetOrientation : Android.Graphics.Drawables.GradientDrawable.Orientation -> unit

Parameters

orientation
GradientDrawable.Orientation

the desired orientation (angle) of the gradient

Attributes

Remarks

Java documentation for android.graphics.drawable.GradientDrawable.setOrientation(android.graphics.drawable.Orientation).

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