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 属性许可证中所述的术语使用。

适用于