// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. using FlaxEngine.GUI; namespace FlaxEditor.CustomEditors.Elements { /// /// The textbox element. /// /// public class TextBoxElement : LayoutElement { /// /// The text box. /// public readonly TextBox TextBox; /// /// Gets or sets the text. /// public string Text { get => TextBox.Text; set => TextBox.Text = value; } /// /// Initializes a new instance of the class. /// /// Enable/disable multiline text input support public TextBoxElement(bool isMultiline = false) { TextBox = new TextBox(isMultiline, 0, 0); if (isMultiline) TextBox.Height = TextBox.DefaultHeight * 4; } /// public override Control Control => TextBox; } }