共用方式為


Path.AddRect 方法

定義

多載

AddRect(RectF, Path+Direction)

將封閉矩形輪廓新增至路徑

AddRect(Single, Single, Single, Single, Path+Direction)

將封閉矩形輪廓新增至路徑

AddRect(RectF, Path+Direction)

將封閉矩形輪廓新增至路徑

[Android.Runtime.Register("addRect", "(Landroid/graphics/RectF;Landroid/graphics/Path$Direction;)V", "GetAddRect_Landroid_graphics_RectF_Landroid_graphics_Path_Direction_Handler")]
public virtual void AddRect (Android.Graphics.RectF rect, Android.Graphics.Path.Direction dir);
[<Android.Runtime.Register("addRect", "(Landroid/graphics/RectF;Landroid/graphics/Path$Direction;)V", "GetAddRect_Landroid_graphics_RectF_Landroid_graphics_Path_Direction_Handler")>]
abstract member AddRect : Android.Graphics.RectF * Android.Graphics.Path.Direction -> unit
override this.AddRect : Android.Graphics.RectF * Android.Graphics.Path.Direction -> unit

參數

rect
RectF

要新增為封閉輪廓至路徑的矩形

dir
Path.Direction

繞矩形輪廓的方向

屬性

備註

android.graphics.Path.addRect(float, float, float, float, android.graphics.Direction)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

AddRect(Single, Single, Single, Single, Path+Direction)

將封閉矩形輪廓新增至路徑

[Android.Runtime.Register("addRect", "(FFFFLandroid/graphics/Path$Direction;)V", "GetAddRect_FFFFLandroid_graphics_Path_Direction_Handler")]
public virtual void AddRect (float left, float top, float right, float bottom, Android.Graphics.Path.Direction dir);
[<Android.Runtime.Register("addRect", "(FFFFLandroid/graphics/Path$Direction;)V", "GetAddRect_FFFFLandroid_graphics_Path_Direction_Handler")>]
abstract member AddRect : single * single * single * single * Android.Graphics.Path.Direction -> unit
override this.AddRect : single * single * single * single * Android.Graphics.Path.Direction -> unit

參數

left
Single

要加入至路徑之矩形的左側

top
Single

要加入至路徑的矩形頂端

right
Single

要新增至路徑之矩形的右側

bottom
Single

要加入至路徑的矩形底部

dir
Path.Direction

繞矩形輪廓的方向

屬性

備註

android.graphics.Path.addRect(float, float, float, float, android.graphics.Direction)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於