# TabStopSpan

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Nested Classes](https://developer.android.com/reference/android/text/style/TabStopSpan#nestedclasses)\|[Methods](https://developer.android.com/reference/android/text/style/TabStopSpan#pubmethods)  

# TabStopSpan

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/text/style/TabStopSpan "View this page in Kotlin")\|Java

`
public


interface
TabStopSpan
`  
`


implements

`[ParagraphStyle](https://developer.android.com/reference/android/text/style/ParagraphStyle)`


`

|--------------------------------|
| android.text.style.TabStopSpan |

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known indirect subclasses [TabStopSpan.Standard](https://developer.android.com/reference/android/text/style/TabStopSpan.Standard) |---------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------| | [TabStopSpan.Standard](https://developer.android.com/reference/android/text/style/TabStopSpan.Standard) | The default implementation of TabStopSpan that allows setting the offset of the tab stop from the leading margin of the first line of text. | |

<br />

*** ** * ** ***

Paragraph affecting span that changes the position of the tab with respect to the leading margin of the line.`TabStopSpan`will only affect the first tab encountered on the first line of the text.

## Summary

|                                                                                                                      ### Nested classes                                                                                                                       ||
|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [TabStopSpan.Standard](https://developer.android.com/reference/android/text/style/TabStopSpan.Standard) The default implementation of TabStopSpan that allows setting the offset of the tab stop from the leading margin of the first line of text. |

|                                                                                              ### Public methods                                                                                               ||
|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract int` | ` `[getTabStop](https://developer.android.com/reference/android/text/style/TabStopSpan#getTabStop())`() ` Returns the offset of the tab stop from the leading margin of the line, in pixels. |

## Public methods

### getTabStop

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract int getTabStop ()
```

Returns the offset of the tab stop from the leading margin of the line, in pixels.

<br />

|               Returns               ||
|-------|------------------------------|
| `int` | the offset, in pixels <br /> |