ILineBackgroundSpanExtensions.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.
Draw the background on the canvas.
public static void DrawBackground(this Android.Text.Style.ILineBackgroundSpan self, 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);
static member DrawBackground : Android.Text.Style.ILineBackgroundSpan * Android.Graphics.Canvas * Android.Graphics.Paint * int * int * int * int * int * string * int * int * int -> unit
Parameters
- self
- ILineBackgroundSpan
- canvas
- Canvas
canvas on which the span should be rendered. This value cannot be null.
- paint
- Paint
paint used to draw text, which should be left unchanged on exit. This value cannot be null.
- left
- Int32
left position of the line relative to input canvas, in pixels. The units of this value are pixels.
- right
- Int32
right position of the line relative to input canvas, in pixels. The units of this value are pixels.
- top
- Int32
top position of the line relative to input canvas, in pixels. The units of this value are pixels.
- baseline
- Int32
baseline of the text relative to input canvas, in pixels. The units of this value are pixels.
- bottom
- Int32
bottom position of the line relative to input canvas, in pixels. The units of this value are pixels.
- text
- String
current text. This value cannot be null.
- 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.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.