Sdílet prostřednictvím


ILineBackgroundSpan.DrawBackground Method

Definition

Draw the background on the canvas.

[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:Android.Text.Style.ILineBackgroundSpanInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public 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:Android.Text.Style.ILineBackgroundSpanInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member DrawBackground : Android.Graphics.Canvas * Android.Graphics.Paint * int * int * int * int * int * Java.Lang.ICharSequence * int * int * int -> unit

Parameters

canvas
Canvas

canvas on which the span should be rendered

paint
Paint

paint used to draw text, which should be left unchanged on exit

left
Int32

left position of the line relative to input canvas, in pixels

right
Int32

right position of the line relative to input canvas, in pixels

top
Int32

top position of the line relative to input canvas, in pixels

baseline
Int32

baseline of the text relative to input canvas, in pixels

bottom
Int32

bottom position of the line relative to input canvas, in pixels

text
ICharSequence

current text

start
Int32

start character index of the line

end
Int32

end character index of the line

lineNumber
Int32

line number in the current text layout

Attributes

Remarks

Draw the background on the canvas.

Java documentation for android.text.style.LineBackgroundSpan.drawBackground(android.graphics.Canvas, android.graphics.Paint, int, int, int, int, int, java.lang.CharSequence, int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to