h = uieditfield()
h = uieditfield(parent)
h = uieditfield(..., propertyName, propertyValue)
| Paramètre | Description |
|---|---|
| parent | conteneur parent. |
| propertyName, propertyValue | paires nom-valeur. |
| Paramètre | Description |
|---|---|
| h | objet composant UI. |
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.
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();
f = uifigure();
ef = uieditfield(f, 'Value', 'bonjour');
nef = uieditfield(f, 'numeric', 'Limits', [0 100], 'Value', 42);
| Version | Description |
|---|---|
| 2.0.0 | version initiale |