class TextEditOptions
source · line 18public class TextEditOptions public constructor(
public val multiline: Boolean = false,
public val wrap: Boolean = true,
public val readOnly: Boolean = false,
public val enabled: Boolean = true,
public val tab: TextTabBehavior = TextTabBehavior.Navigate,
public val submit: TextSubmitKeys = TextSubmitKeys.Enter,
public val direction: TextDirection? = None,
public val alignment: TextAlignment = TextAlignment.Start,
public val paintCache: PaintCachePolicy = PaintCachePolicy.None,
public val caretBlink: Duration? = None,
public val policy: TextEditPolicy = textEditPolicy(),
public val projection: TextProjection = textProjection(),
public val copy: TextCopyPolicy = TextCopyPolicy.Default,
public val contextMenu: TextContextMenuOptions = TextContextMenuOptions(),
/** A protected purpose remains set when its display projection becomes plain text. */
public val protectedText: Boolean = false,
public val acceptDrops: Boolean = true,
public val drag: TextDragOptions = TextDragOptions(),
public val touch: TextTouchOptions = TextTouchOptions(),
public val touchScroll: TouchScrollOptions = TouchScrollOptions(),
public val scrollPhysics: ScrollPhysicsOptions = ScrollPhysicsOptions(),
public val inputPurpose: TextInputPurpose = TextInputPurpose.Normal,
public val softwareKeyboard: Boolean = true,
public val primarySelection: TextPrimarySelectionOptions = TextPrimarySelectionOptions(),
public val automaticTextReplacement: Boolean = false
)
Editing policy is independent of the control's theme and border.
constructor constructor
source · line 18constructor(public val multiline: Boolean = false, public val wrap: Boolean = true, public val readOnly: Boolean = false, public val enabled: Boolean = true, public val tab: TextTabBehavior = TextTabBehavior.Navigate, public val submit: TextSubmitKeys = TextSubmitKeys.Enter, public val direction: TextDirection? = None, public val alignment: TextAlignment = TextAlignment.Start, public val paintCache: PaintCachePolicy = PaintCachePolicy.None, public val caretBlink: Duration? = None, public val policy: TextEditPolicy = textEditPolicy(), public val projection: TextProjection = textProjection(), public val copy: TextCopyPolicy = TextCopyPolicy.Default, public val contextMenu: TextContextMenuOptions = TextContextMenuOptions(), public val protectedText: Boolean = false, public val acceptDrops: Boolean = true, public val drag: TextDragOptions = TextDragOptions(), public val touch: TextTouchOptions = TextTouchOptions(), public val touchScroll: TouchScrollOptions = TouchScrollOptions(), public val scrollPhysics: ScrollPhysicsOptions = ScrollPhysicsOptions(), public val inputPurpose: TextInputPurpose = TextInputPurpose.Normal, public val softwareKeyboard: Boolean = true, public val primarySelection: TextPrimarySelectionOptions = TextPrimarySelectionOptions(), public val automaticTextReplacement: Boolean = false)
parameter primarySelection
source · line 42public val primarySelection: TextPrimarySelectionOptions = TextPrimarySelectionOptions()
parameter softwareKeyboard
source · line 41public val softwareKeyboard: Boolean = true
parameter drag
source · line 36public val drag: TextDragOptions = TextDragOptions()
parameter scrollPhysics
source · line 39public val scrollPhysics: ScrollPhysicsOptions = ScrollPhysicsOptions()
parameter policy
source · line 29public val policy: TextEditPolicy = textEditPolicy()
parameter tab
source · line 23public val tab: TextTabBehavior = TextTabBehavior.Navigate
parameter alignment
source · line 26public val alignment: TextAlignment = TextAlignment.Start
parameter touch
source · line 37public val touch: TextTouchOptions = TextTouchOptions()
parameter enabled
source · line 22public val enabled: Boolean = true
parameter touchScroll
source · line 38public val touchScroll: TouchScrollOptions = TouchScrollOptions()
parameter copy
source · line 31public val copy: TextCopyPolicy = TextCopyPolicy.Default
parameter submit
source · line 24public val submit: TextSubmitKeys = TextSubmitKeys.Enter
parameter contextMenu
source · line 32public val contextMenu: TextContextMenuOptions = TextContextMenuOptions()
parameter wrap
source · line 20public val wrap: Boolean = true
parameter projection
source · line 30public val projection: TextProjection = textProjection()
parameter paintCache
source · line 27public val paintCache: PaintCachePolicy = PaintCachePolicy.None
parameter acceptDrops
source · line 35public val acceptDrops: Boolean = true
parameter readOnly
source · line 21public val readOnly: Boolean = false
parameter inputPurpose
source · line 40public val inputPurpose: TextInputPurpose = TextInputPurpose.Normal
parameter automaticTextReplacement
source · line 43public val automaticTextReplacement: Boolean = false
parameter direction
source · line 25public val direction: TextDirection? = None
parameter caretBlink
source · line 28public val caretBlink: Duration? = None
parameter multiline
source · line 19public val multiline: Boolean = false
parameter protectedText
source · line 34public val protectedText: Boolean = false
property copy
source · line 31public val copy: TextCopyPolicy = TextCopyPolicy.Default
get: public read-only
property readOnly
source · line 21public val readOnly: Boolean = false
get: public read-only
property projection
source · line 30public val projection: TextProjection = textProjection()
get: public read-only
property submit
source · line 24public val submit: TextSubmitKeys = TextSubmitKeys.Enter
get: public read-only
property multiline
source · line 19public val multiline: Boolean = false
get: public read-only
property primarySelection
source · line 42public val primarySelection: TextPrimarySelectionOptions = TextPrimarySelectionOptions()
get: public read-only
property contextMenu
source · line 32public val contextMenu: TextContextMenuOptions = TextContextMenuOptions()
get: public read-only
property enabled
source · line 22public val enabled: Boolean = true
get: public read-only
property paintCache
source · line 27public val paintCache: PaintCachePolicy = PaintCachePolicy.None
get: public read-only
property acceptDrops
source · line 35public val acceptDrops: Boolean = true
get: public read-only
property inputPurpose
source · line 40public val inputPurpose: TextInputPurpose = TextInputPurpose.Normal
get: public read-only
property touch
source · line 37public val touch: TextTouchOptions = TextTouchOptions()
get: public read-only
property drag
source · line 36public val drag: TextDragOptions = TextDragOptions()
get: public read-only
property automaticTextReplacement
source · line 43public val automaticTextReplacement: Boolean = false
get: public read-only
property scrollPhysics
source · line 39public val scrollPhysics: ScrollPhysicsOptions = ScrollPhysicsOptions()
get: public read-only
property direction
source · line 25public val direction: TextDirection? = None
get: public read-only
property tab
source · line 23public val tab: TextTabBehavior = TextTabBehavior.Navigate
get: public read-only
property alignment
source · line 26public val alignment: TextAlignment = TextAlignment.Start
get: public read-only
property protectedText
source · line 34public val protectedText: Boolean = false
get: public read-only
A protected purpose remains set when its display projection becomes plain text.
property caretBlink
source · line 28public val caretBlink: Duration? = None
get: public read-only
property softwareKeyboard
source · line 41public val softwareKeyboard: Boolean = true
get: public read-only
property touchScroll
source · line 38public val touchScroll: TouchScrollOptions = TouchScrollOptions()
get: public read-only
property wrap
source · line 20public val wrap: Boolean = true
get: public read-only
property policy
source · line 29public val policy: TextEditPolicy = textEditPolicy()
get: public read-only