LineBackgroundSpanStandard.DrawBackground 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
DrawBackground(Canvas, Paint, Int32, Int32, Int32, Int32, Int32, ICharSequence, Int32, Int32, Int32)
在畫布上畫背景。
[Android.Runtime.Register("drawBackground", "(Landroid/graphics/Canvas;Landroid/graphics/Paint;IIIIILjava/lang/CharSequence;III)V", "GetDrawBackground_Landroid_graphics_Canvas_Landroid_graphics_Paint_IIIIILjava_lang_CharSequence_IIIHandler", ApiSince=29)]
public virtual void DrawBackground(Android.Graphics.Canvas canvas, Android.Graphics.Paint paint, int left, int right, int top, int baseline, int bottom, Java.Lang.ICharSequence text, int start, int end, int lineNumber);
[<Android.Runtime.Register("drawBackground", "(Landroid/graphics/Canvas;Landroid/graphics/Paint;IIIIILjava/lang/CharSequence;III)V", "GetDrawBackground_Landroid_graphics_Canvas_Landroid_graphics_Paint_IIIIILjava_lang_CharSequence_IIIHandler", ApiSince=29)>]
abstract member DrawBackground : Android.Graphics.Canvas * Android.Graphics.Paint * int * int * int * int * int * Java.Lang.ICharSequence * int * int * int -> unit
override this.DrawBackground : Android.Graphics.Canvas * Android.Graphics.Paint * int * int * int * int * int * Java.Lang.ICharSequence * int * int * int -> unit
參數
- canvas
- Canvas
- paint
- Paint
- left
- Int32
這個數值的單位是像素。
- right
- Int32
這個數值的單位是像素。
- top
- Int32
這個數值的單位是像素。
- baseline
- Int32
這個數值的單位是像素。
- bottom
- Int32
這個數值的單位是像素。
- text
- ICharSequence
- start
- Int32
該行的開始字元索引
- end
- Int32
該行的字元索引
- lineNumber
- Int32
目前文字版面中的行號
實作
- 屬性
備註
在畫布上畫背景。
Android 參考資料。android.text.style.LineBackgroundSpan.Standard.drawBackground
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
DrawBackground(Canvas, Paint, Int32, Int32, Int32, Int32, Int32, String, Int32, Int32, Int32)
在畫布上畫背景。
public void DrawBackground(Android.Graphics.Canvas canvas, Android.Graphics.Paint paint, int left, int right, int top, int baseline, int bottom, string text, int start, int end, int lineNumber);
member this.DrawBackground : Android.Graphics.Canvas * Android.Graphics.Paint * int * int * int * int * int * string * int * int * int -> unit
參數
- canvas
- Canvas
- paint
- Paint
- left
- Int32
這個數值的單位是像素。
- right
- Int32
這個數值的單位是像素。
- top
- Int32
這個數值的單位是像素。
- baseline
- Int32
這個數值的單位是像素。
- bottom
- Int32
這個數值的單位是像素。
- text
- String
- start
- Int32
該行的開始字元索引
- end
- Int32
該行的字元索引
- lineNumber
- Int32
目前文字版面中的行號
備註
在畫布上畫背景。
Android 參考資料。android.text.style.LineBackgroundSpan.Standard.drawBackground
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。