Compartir a través de


ILeadingMarginSpan.DrawLeadingMargin Method

Definition

Renders the leading margin.

[Android.Runtime.Register("drawLeadingMargin", "(Landroid/graphics/Canvas;Landroid/graphics/Paint;IIIIILjava/lang/CharSequence;IIZLandroid/text/Layout;)V", "GetDrawLeadingMargin_Landroid_graphics_Canvas_Landroid_graphics_Paint_IIIIILjava_lang_CharSequence_IIZLandroid_text_Layout_Handler:Android.Text.Style.ILeadingMarginSpanInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void DrawLeadingMargin (Android.Graphics.Canvas? c, Android.Graphics.Paint? p, int x, int dir, int top, int baseline, int bottom, Java.Lang.ICharSequence? text, int start, int end, bool first, Android.Text.Layout? layout);
[<Android.Runtime.Register("drawLeadingMargin", "(Landroid/graphics/Canvas;Landroid/graphics/Paint;IIIIILjava/lang/CharSequence;IIZLandroid/text/Layout;)V", "GetDrawLeadingMargin_Landroid_graphics_Canvas_Landroid_graphics_Paint_IIIIILjava_lang_CharSequence_IIZLandroid_text_Layout_Handler:Android.Text.Style.ILeadingMarginSpanInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member DrawLeadingMargin : Android.Graphics.Canvas * Android.Graphics.Paint * int * int * int * int * int * Java.Lang.ICharSequence * int * int * bool * Android.Text.Layout -> unit

Parameters

c
Canvas

the canvas

p
Paint

the paint. The this should be left unchanged on exit.

x
Int32

the current position of the margin

dir
Int32

the base direction of the paragraph; if negative, the margin is to the right of the text, otherwise it is to the left.

top
Int32

the top of the line

baseline
Int32

the baseline of the line

bottom
Int32

the bottom of the line

text
ICharSequence

the text

start
Int32

the start of the line

end
Int32

the end of the line

first
Boolean

true if this is the first line of its paragraph

layout
Layout

the layout containing this line

Attributes

Remarks

Renders the leading margin. This is called before the margin has been adjusted by the value returned by #getLeadingMargin(boolean).

Java documentation for android.text.style.LeadingMarginSpan.drawLeadingMargin(android.graphics.Canvas, android.graphics.Paint, int, int, int, int, int, java.lang.CharSequence, int, int, boolean, android.text.Layout).

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