필터 지우기
필터 지우기

I can't get bold font in uitable app designer

조회 수: 18 (최근 30일)
aldo
aldo 2023년 8월 15일
댓글: aldo 2023년 8월 15일
app.UITable_periodical.Data
s = uistyle;
s.FontWeight = "bold";
if i set s.FontWeight = "bold" or not is equal..i don't see character bold

채택된 답변

Voss
Voss 2023년 8월 15일
To make a uistyle take effect, you must use addStyle to associate the style with the component (i.e., the uitable in this case).
% create a uistyle:
s = uistyle; % these two line could more succinctly be written as
s.FontWeight = "bold"; % s = uistyle('FontWeight','bold');
% associate s with a uitable:
addStyle(app.UITable_periodical,s)
  댓글 수: 7
Voss
Voss 2023년 8월 15일
Ah, ok. You can make everything bold in a couple of different ways. I would probably make a new uistyle just for the bold FontWeight, and apply it everywhere (e.g., every column) you want to be bold. And let the color uistyles be just for FontColor and apply only to specific cells. (Any row/column/cell can have multiple uistyles applied to it.)
I'm sure you can get it from here, but if you need any help, let me know.
aldo
aldo 2023년 8월 15일
oky thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop 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