get_rowheader_width

Get the width of the rowheaders of a uitable component.
242.0 次下载
更新时间 2016/9/1

查看许可证

get_rowheader_width Get row header width of a uitable

rh_width = get_rowheader_width(ht) returns the row header width of a 2-D
graphic table UI component ("uitable") with the handle ht.

rh_width is returned in the units specified by the table component's
"Units" property.

Example:
% Set up UITable
f = figure('Position',[400 300 400 150]);
dat = rand(3);
cnames = {'X-Data','Y-Data','Z-Data'};
rnames = {'First','Second','Third'};
ht = uitable('Parent',f,'Data',dat,'ColumnName',cnames,...
'RowName',rnames,'Position',[20 20 360 100]);
% Find the row header width
rh_width = get_rowheader_width(ht);
disp(['Row header width is: ' int2str(rh_width)]);

引用格式

Nade Sritanyaratana (2024). get_rowheader_width (https://www.mathworks.com/matlabcentral/fileexchange/48443-get_rowheader_width), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2014a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Migrate GUIDE Apps 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.1

Updated license

1.0.0.0