Interface IUISingleLineTextInput
A component that can be used to display or edit unformatted text on a single line.
Inherited Members
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 |