www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregclickinput/get.m
function out = get(obj, property) % xregconstinput/SET % get(xregconstinput, '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. ud = get(obj.text,'UserData'); switch upper(property) case {'VARNAME','NAME'} out = get(obj.text,'String'); case 'CALLBACK' out = ud.callback; case 'USERDATA' out = ud.UserData; case 'VALUE' % Value is handled separately to other propreties in order to % support case-insensitive matching. out = get(obj.clickedit, 'Value'); otherwise try out=get(obj.clickedit,property); catch E warning(message('mbc:xregclickinput:InvalidPropertyName')); end end %switch