Join us for ⁠#Android11: The Beta Launch Show on June 3!

TextIndent

@Immutable data class TextIndent
kotlin.Any
   ↳ androidx.ui.text.style.TextIndent

Specify the indentation of a paragraph.

Summary

Public constructors

<init>(firstLine: TextUnit = 0.sp, restLine: TextUnit = 0.sp)

Specify the indentation of a paragraph.

Properties

TextUnit

the amount of indentation applied to the first line.

TextUnit

the amount of indentation applied to every line except the first line.

Companion properties

TextIndent

Constant fot no text indent.

Public constructors

<init>

TextIndent(
    firstLine: TextUnit = 0.sp,
    restLine: TextUnit = 0.sp)

Specify the indentation of a paragraph.

Parameters
firstLine: TextUnit = 0.sp the amount of indentation applied to the first line.
restLine: TextUnit = 0.sp the amount of indentation applied to every line except the first line.

Properties

firstLine

val firstLine: TextUnit

the amount of indentation applied to the first line.

restLine

val restLine: TextUnit

the amount of indentation applied to every line except the first line.

Companion properties

None

val None: TextIndent

Constant fot no text indent.