# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Methods | Inherited Methods

# LeadingMarginSpan.LeadingMarginSpan2

`public static interface LeadingMarginSpan.LeadingMarginSpan2`
`implements LeadingMarginSpan, WrapTogetherSpan`

android.text.style.LeadingMarginSpan.LeadingMarginSpan2

An extended version of `LeadingMarginSpan`, which allows the implementor to specify the number of lines of the paragraph to which this object is attached that the "first line of paragraph" margin width will be applied to.

There should only be one LeadingMarginSpan2 per paragraph. The leading margin line count affects all LeadingMarginSpans in the paragraph, adjusting the number of lines to which the first line margin is applied.

As with LeadingMarginSpans, LeadingMarginSpan2s should be attached from the beginning to the end of a paragraph.

## Summary

### Public methods
`abstract int` | `getLeadingMarginLineCount()` Returns the number of lines of the paragraph to which this object is attached that the "first line" margin will apply to.

### Inherited methods
From interface `android.text.style.LeadingMarginSpan`
`abstract void` | `drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout)` Renders the leading margin.
`abstract int` | `getLeadingMargin(boolean first)` Returns the amount by which to adjust the leading margin.

## Public methods

### getLeadingMarginLineCount

    public abstract int getLeadingMarginLineCount ()

Returns the number of lines of the paragraph to which this object is attached that the "first line" margin will apply to.

Returns
`int` |

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*