DevToys logo DevToys
  • Home
  • Blog
  • Documentation
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface IUISingleLineTextInput

    A component that can be used to display or edit unformatted text on a single line.

    Inherited Members
    IUITitledElement.Title
    IUITitledElement.TitleChanged
    IUIElementWithChildren.GetChildElementById(string)
    IUIElement.Id
    IUIElement.IsVisible
    IUIElement.IsEnabled
    IUIElement.HorizontalAlignment
    IUIElement.VerticalAlignment
    IUIElement.IsVisibleChanged
    IUIElement.IsEnabledChanged
    IUIElement.HorizontalAlignmentChanged
    IUIElement.VerticalAlignmentChanged
    Namespace: DevToys.Api
    Assembly: DevToys.Api.dll
    Syntax
    public interface IUISingleLineTextInput : IUITitledElementWithChildren, IUITitledElement, IUIElementWithChildren, IUIElement

    Properties

    CanCopyWhenEditable

    Gets whether the Copy button should be displayed on top of the editor, even when it is not read-only. Default is false.

    Declaration
    bool CanCopyWhenEditable { get; }
    Property Value
    Type Description
    bool

    CommandBarExtraContent

    Gets an extra interactive content to display in the command bar of the text input.

    Declaration
    IUIElement? CommandBarExtraContent { get; }
    Property Value
    Type Description
    IUIElement

    HideCommandBar

    Gets whether the command bar should be hidden. Default is false.

    Declaration
    bool HideCommandBar { get; }
    Property Value
    Type Description
    bool
    Remarks

    When true, CommandBarExtraContent is ignored.

    IsReadOnly

    Gets whether the user can edit the text or not. Default is false.

    Declaration
    bool IsReadOnly { get; }
    Property Value
    Type Description
    bool

    Text

    Gets the text displayed or typed by the user.

    Declaration
    string Text { get; }
    Property Value
    Type Description
    string

    Events

    CanCopyWhenEditableChanged

    Raised when CanCopyWhenEditable is changed.

    Declaration
    event EventHandler? CanCopyWhenEditableChanged
    Event Type
    Type Description
    EventHandler

    CommandBarExtraContentChanged

    Raised when CommandBarExtraContent is changed.

    Declaration
    event EventHandler? CommandBarExtraContentChanged
    Event Type
    Type Description
    EventHandler

    HideCommandBarChanged

    Raised when HideCommandBar is changed.

    Declaration
    event EventHandler? HideCommandBarChanged
    Event Type
    Type Description
    EventHandler

    IsReadOnlyChanged

    Raised when IsReadOnly is changed.

    Declaration
    event EventHandler? IsReadOnlyChanged
    Event Type
    Type Description
    EventHandler

    TextChanged

    Raised when Text is changed.

    Declaration
    event EventHandler? TextChanged
    Event Type
    Type Description
    EventHandler

    Extension Methods

    GUI.AlignHorizontally<T>(T, UIHorizontalAlignment)
    GUI.AlignVertically<T>(T, UIVerticalAlignment)
    GUI.CanCopyWhenEditable<T>(T)
    GUI.CannotCopyWhenEditable<T>(T)
    GUI.CommandBarExtraContent<T>(T, IUIElement?)
    GUI.Disable<T>(T)
    GUI.Editable<T>(T)
    GUI.Enable<T>(T)
    GUI.HideCommandBar<T>(T)
    GUI.Hide<T>(T)
    GUI.OnTextChanged<T>(T, Action<string>)
    GUI.OnTextChanged<T>(T, Func<string, ValueTask>)
    GUI.ReadOnly<T>(T)
    GUI.ShowCommandBar<T>(T)
    GUI.Show<T>(T)
    GUI.Text<T>(T, string)
    GUI.Title<T>(T, string?)
    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys