LineBackgroundSpanStandard.DrawBackground Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| DrawBackground(Canvas, Paint, Int32, Int32, Int32, Int32, Int32, ICharSequence, Int32, Int32, Int32) |
Draw the background on the canvas. |
| DrawBackground(Canvas, Paint, Int32, Int32, Int32, Int32, Int32, String, Int32, Int32, Int32) |
Draw the background on the canvas. |
DrawBackground(Canvas, Paint, Int32, Int32, Int32, Int32, Int32, ICharSequence, Int32, Int32, Int32)
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", 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
Parameters
- canvas
- Canvas
- paint
- Paint
- left
- Int32
The units of this value are pixels.
- right
- Int32
The units of this value are pixels.
- top
- Int32
The units of this value are pixels.
- baseline
- Int32
The units of this value are pixels.
- bottom
- Int32
The units of this value are pixels.
- text
- ICharSequence
- 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
Implements
- Attributes
Remarks
Draw the background on the canvas.
Android reference for android.text.style.LineBackgroundSpan.Standard.drawBackground.
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
DrawBackground(Canvas, Paint, Int32, Int32, Int32, Int32, Int32, String, Int32, Int32, Int32)
Draw the background on the canvas.
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
Parameters
- canvas
- Canvas
- paint
- Paint
- left
- Int32
The units of this value are pixels.
- right
- Int32
The units of this value are pixels.
- top
- Int32
The units of this value are pixels.
- baseline
- Int32
The units of this value are pixels.
- bottom
- Int32
The units of this value are pixels.
- text
- String
- 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
Remarks
Draw the background on the canvas.
Android reference for android.text.style.LineBackgroundSpan.Standard.drawBackground.
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.