語言

GradientDrawable.SetOrientation(GradientDrawable+Orientation) 方法

定義

設定此可繪圖中定義梯度的方向。

[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

參數

orientation
GradientDrawable.Orientation

梯度的期望方向(角度)

屬性

備註

Java 文件 android.graphics.drawable.GradientDrawable.setOrientation(android.graphics.drawable.Orientation)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於