uitextarea
Create text area component.
📝Syntax
h = uitextarea()
h = uitextarea(parent)
h = uitextarea(..., propertyName, propertyValue)
📥Input Arguments
Parameter Description
parent parent container.
propertyName, propertyValue name-value pairs.
📤Output Arguments
Parameter Description
h UI component object.
📄Description

ta = uitextarea creates a multi-line text area. Value is a cell array of character vectors (one per line). Properties: Editable, WordWrap, HorizontalAlignment, Placeholder, ValueChangedFcn, ValueChangingFcn.

💡Examples
Captured UI component for the help image.
f = uifigure('Visible', 'off', 'Name', 'Text area', 'Position', [100 100 420 260]);
ta = uitextarea(f, 'Position', [95 75 230 115]);
ta.Value = {'Line one'; 'Line two'; 'Line three'};
drawnow();
Example illustration
uitextarea
f = uifigure();
ta = uitextarea(f, 'Value', {'first line', 'second line'});
🔗See Also
uifigure
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub