Skip to main content

ITextEntryModal interface

Namespace: Arlecchino.Modals.Asking · Assembly: Arlecchino

A field that is typed into, shared by the text field and the number field so both edit and complain alike. What is typed and where the caret is come from ITextEntry.

public interface ITextEntryModal : IAffixedModal, ITextEntry

Implements IAffixedModal, ITextEntry
Implemented by NumberModal, TextModal

Properties

MemberSummary
MaskedWhether to draw dots instead of the text. The value itself stays as typed.
MessageValidation message shown under the field, cleared by typing.

Methods

MemberSummary
AcceptsCharacter(char)Whether a character may be typed here at all.

Properties in detail

Masked

public bool Masked { get; }

Whether to draw dots instead of the text. The value itself stays as typed.

Type bool

Message

public string? Message { get; set; }

Validation message shown under the field, cleared by typing.

Type string

Methods in detail

AcceptsCharacter(char)

public bool AcceptsCharacter(char character);

Whether a character may be typed here at all.

Parameters

NameTypeDescription
charactercharThe character resolved from the key press.

Returns booltrue when it should be inserted.