語言

RoundRectShape 建構函式

定義

多載

名稱 Description
RoundRectShape(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

RoundRectShape(Single[], RectF, Single[])

RoundRectShape 建構器。

RoundRectShape(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

protected RoundRectShape(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.Drawables.Shapes.RoundRectShape : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.Drawables.Shapes.RoundRectShape

參數

javaReference
IntPtr

nativeint

IntPtrA 包含一個 Java 原生介面(JNI)物件參考。

transfer
JniHandleOwnership

JniHandleOwnershipA 指示如何處理javaReference

備註

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

適用於

RoundRectShape(Single[], RectF, Single[])

RoundRectShape 建構器。

[Android.Runtime.Register(".ctor", "([FLandroid/graphics/RectF;[F)V", "")]
public RoundRectShape(float[]? outerRadii, Android.Graphics.RectF? inset, float[]? innerRadii);
[<Android.Runtime.Register(".ctor", "([FLandroid/graphics/RectF;[F)V", "")>]
new Android.Graphics.Drawables.Shapes.RoundRectShape : single[] * Android.Graphics.RectF * single[] -> Android.Graphics.Drawables.Shapes.RoundRectShape

參數

outerRadii
Single[]

一個由 8 個半徑值組成的陣列,代表外圍的 roundrect。 前兩個浮點是左上角的浮點(剩下的浮點對應順時針方向)。 若外層矩形沒有圓角,則通過 null。

inset
RectF

一個 RectF,指定從內側矩形到外側正方形兩側的距離。 沒有內在的話,就跳過 null。

innerRadii
Single[]

一個包含 8 個半徑值的陣列,代表內圈 roundrect。 前兩個浮點是左上角的浮點(剩下的浮點對應順時針方向)。 若內側矩形無圓角,則通過 null。 若嵌入參數為 null,則忽略此參數。

屬性

備註

RoundRectShape 建構器。

指定一個外部(圓)矩形矩形及一個可選的內層(圓)矩形。

Java 文件 android.graphics.drawable.shapes.RoundRectShape.RoundRectShape(float[], android.graphics.RectF, float[])。

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

適用於