uieditfield
Crée un champ d'édition texte ou numérique.
📝Syntaxe
h = uieditfield()
h = uieditfield(parent)
h = uieditfield(..., propertyName, propertyValue)
📥Arguments d'entrée
Paramètre Description
parent conteneur parent.
propertyName, propertyValue paires nom-valeur.
📤Arguments de sortie
Paramètre Description
h objet composant UI.
📄Description

ef = uieditfield crée un champ texte ; uieditfield(parent, 'numeric') crée un champ numérique. Style texte : Value (char), CharacterLimits, InputType, ValueChangingFcn. Style numérique : Value (double), Limits, LowerLimitInclusive/UpperLimitInclusive, RoundFractionalValues, ValueDisplayFormat, AllowEmpty. Communs : Editable, HorizontalAlignment, Placeholder, ValueChangedFcn.

💡Exemples
Capture du composant UI pour l'image d'aide.
f = uifigure('Visible', 'off', 'Name', 'Edit fields', 'Position', [100 100 420 260]);
ef = uieditfield(f, 'Position', [95 135 230 24]);
ef.Value = 'Sample text';
nf = uieditfield(f, 'numeric', 'Position', [95 90 120 24]);
nf.Value = 42.5;
drawnow();
Example illustration
uieditfield
f = uifigure();
ef = uieditfield(f, 'Value', 'bonjour');
nef = uieditfield(f, 'numeric', 'Limits', [0 100], 'Value', 42);
🔗Voir aussi
uifigure
🕔Historique des versions
Version Description
2.0.0 version initiale
Modifier cette page sur GitHub