Sdílet prostřednictvím


DrawableMarginSpan.DrawLeadingMargin Method

Definition

Overloads

DrawLeadingMargin(Canvas, Paint, Int32, Int32, Int32, Int32, Int32, ICharSequence, Int32, Int32, Boolean, Layout)

Renders the leading margin.

DrawLeadingMargin(Canvas, Paint, Int32, Int32, Int32, Int32, Int32, String, Int32, Int32, Boolean, Layout)

DrawLeadingMargin(Canvas, Paint, Int32, Int32, Int32, Int32, Int32, ICharSequence, Int32, Int32, Boolean, Layout)

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")]
public virtual 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")>]
abstract member DrawLeadingMargin : Android.Graphics.Canvas * Android.Graphics.Paint * int * int * int * int * int * Java.Lang.ICharSequence * int * int * bool * Android.Text.Layout -> unit
override this.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

Implements

Attributes

Remarks

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

DrawLeadingMargin(Canvas, Paint, Int32, Int32, Int32, Int32, Int32, String, Int32, Int32, Boolean, Layout)

public void DrawLeadingMargin (Android.Graphics.Canvas c, Android.Graphics.Paint p, int x, int dir, int top, int baseline, int bottom, string text, int start, int end, bool first, Android.Text.Layout layout);
member this.DrawLeadingMargin : Android.Graphics.Canvas * Android.Graphics.Paint * int * int * int * int * int * string * int * int * bool * Android.Text.Layout -> unit

Parameters

c
Canvas
p
Paint
x
Int32
dir
Int32
top
Int32
baseline
Int32
bottom
Int32
text
String
start
Int32
end
Int32
first
Boolean
layout
Layout

Remarks

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