Text orientation right to left

12 ビュー (過去 30 日間)
Daniel Liberman
Daniel Liberman 2020 年 6 月 9 日
編集済み: Johannes Hougaard 2020 年 6 月 9 日
Hi, In my GUI,I have several popupmenus and checkboxes in which I want the text to be oriented from right to left. Can anyone tell how to do this?

回答 (1 件)

Johannes Hougaard
Johannes Hougaard 2020 年 6 月 9 日
編集済み: Johannes Hougaard 2020 年 6 月 9 日
I'm not fully sure if this adresses your problem - but this does something along the lines of orienting the text right to left.
uifig = uifigure;
label = uilabel(uifig);
label.Text = "right to left";
label.Text = fliplr(label.Text);
label.Position = [100 100 100 22];
label.HorizontalAlignment = 'Right';
If you need to rotate your text rather than flipping it you may use a text rather than a uilabel
uifig = uifigure;
uiaxis = uiaxes(uifig,'visible','off');
label = text(uiaxis,1,0,'Left to right');
label.Rotation = 180;

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by