Inheritance: Element -> NavigableElement -> VisualElement -> View -> InputView
Xamarin.Forms documentation: Editor API / Guide
For details on how the control actually works, please refer to the Xamarin.Forms documentation.
Constructors | Description |
---|---|
Editor(text: string, onTextChanged: string -> ‘msg) | Defines a Editor widget with a text and onTextChanged event. |
Properties | Description |
---|---|
autoSize(value: EditorAutoSizeOption) | Sets a value that controls whether the editor will change size to accommodate input as the user enters it. |
font(?size: float, ?namedSize: NamedSize, ?attributes: FontAttributes, ?fontFamily: string) | Sets the font family used |
isTextPredictionEnabled(value: bool) | Sets whether the text prediction is enabled. |
reference(value: ViewRef<Editor>) | Sets a ViewRef instance to retrieve the Xamarin.Forms.Editor instance associated to this widget |
Properties | Description |
---|---|
onCompleted(onCompleted: ‘msg) | Sets the event handler for the entry onCompleted event |
Editor("Enter a description", TextChanged)
.keyboard(Keyboard.Email)
.textColor(Color.Red.ToFabColor(), Color.Blue.ToFabColor())
.font(namedSize = NamedSize.Large, fontFamily = "Arial", attributes = FontAttributes.Bold)
.textTransform(TextTransform.Lowercase)
.onCompleted(TextCompleted)
let editorRef = ViewRef<Editor>()
Editor("Enter a description", TexChanged)
.reference(editorRef)