Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# TextFieldLineLimits.SingleLine\n==============================\n\nArtifact: [androidx.compose.foundation:foundation](/jetpack/androidx/releases/compose-foundation) \n[View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/text/input/TextFieldLineLimits.kt+class:androidx.compose.foundation.text.input.TextFieldLineLimits.SingleLine) \nAdded in [1.7.0](/jetpack/androidx/releases/compose-foundation#1.7.0)\nCommon/All\n - Cmn \n\n ```\n object TextFieldLineLimits.SingleLine : TextFieldLineLimits\n ```\n\n*** ** * ** ***\n\nThe text field is always a single line tall, ignores newlines in the text, and scrolls horizontally when the text overflows.\n\nSummary\n-------\n\n| ### Public functions |\n|------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|-----|\n| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](/reference/kotlin/androidx/compose/foundation/text/input/TextFieldLineLimits.SingleLine#toString())`()` | Cmn |\n\nPublic functions\n----------------\n\n### toString\n\nCmn \n\n```\nopen fun toString(): String\n```"]]