Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface ITextLine

interface ITextLine
Extends com.amazon.apmf.IStandard Represents a single laid-out line of text within a paragraph. This interface provides access to line-level information after text layout has been performed, including the range of characters from the source text that it contains.

Methods

getTrimmedStartIndex()

u64 getTrimmedStartIndex()
Returns the inclusive start index of the trimmed text range, removing start spaces in line.

Returns

u64 The start index of the trimmed range.

getTrimmedEndIndex()

u64 getTrimmedEndIndex()
Returns the inclusive end index of the trimmed text range, removing end spaces in line.

Returns

u64 The end index of the trimmed range.
Last modified on October 29, 2026