Package icyllis.modernui.text.style

# Interface TrailingMarginSpan

All Superinterfaces:
  `ParagraphStyle`

All Known Implementing Classes:
  `CodeBlockSpan`, `TrailingMarginSpan.Standard`

public interface TrailingMarginSpan extends ParagraphStyle
A paragraph style affecting the trailing margin.

TrailingMarginSpans should be attached from the first character to the last character of a single paragraph.

Added by Modern UI.

Since:
  3.8
See Also:
  - `LeadingMarginSpan`

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static class`
  `TrailingMarginSpan.Standard`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getTrailingMargin()`
  Returns the amount by which to adjust the trailing margin.

- ## Method Details

  - ### getTrailingMargin

    int getTrailingMargin()
    Returns the amount by which to adjust the trailing margin. Positive values move away from the trailing edge of the paragraph, negative values move towards it.

    The trailing margin is on the right for lines in a left-to-right paragraph, and on the left for lines in a right-to-left paragraph.

    Returns:
      the offset for the margin.