다음을 통해 공유


ILeadingMarginSpan.GetLeadingMargin(Boolean) Method

Definition

Returns the amount by which to adjust the leading margin.

[Android.Runtime.Register("getLeadingMargin", "(Z)I", "GetGetLeadingMargin_ZHandler:Android.Text.Style.ILeadingMarginSpanInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetLeadingMargin (bool first);
[<Android.Runtime.Register("getLeadingMargin", "(Z)I", "GetGetLeadingMargin_ZHandler:Android.Text.Style.ILeadingMarginSpanInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetLeadingMargin : bool -> int

Parameters

first
Boolean

true if the request is for the first line of a paragraph, false for subsequent lines

Returns

the offset for the margin.

Attributes

Remarks

Returns the amount by which to adjust the leading margin. Positive values move away from the leading edge of the paragraph, negative values move towards it.

Java documentation for android.text.style.LeadingMarginSpan.getLeadingMargin(boolean).

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