www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregtextinput/get.m
function out = get(obj, property) %% xregtextinput/SET %% get(xregtextinput, 'Property', Value) %% Property = {'numCells', 'Position', 'varName', 'Parent'} %% %% Also at this time only one property per call %% % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. switch upper(property) case {'VARNAME','NAME'} out = get(obj.hnd,'String'); case 'VISIBLE' out = get(obj.hnd,'Visible'); case 'PARENT' out = get(obj.hnd,'Parent'); case 'VALUE' out = []; case 'USERDATA' out = []; end %switch