get_rowheader_width

Get the width of the rowheaders of a uitable component.
242 Descargas
Actualizado 1 sep 2016

Ver licencia

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)]);

Citar como

Nade Sritanyaratana (2026). get_rowheader_width (https://la.mathworks.com/matlabcentral/fileexchange/48443-get_rowheader_width), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2014a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Etiquetas Añadir etiquetas
Versión Publicado Notas de la versión
1.0.0.1

Updated license

1.0.0.0