www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregaxesinput/get.m

    function out = get(obj, property)
%GET Calls to underlying gridlayout
%     get(xregaxesinput, 'Property', Value)
%
%     Also at this time only one property per call

%  Copyright 2000-2013 The MathWorks, Inc. and Ford Global Technologies, Inc.

switch upper(property)
    case {'HANDLES','AXES'}
        axw = get(obj.grid, 'elements');
        out = gobjects(size(axw));
        for n = 1:numel(out)
            out(n) = axw{n};
        end
        out = out(:);
        
    case 'VALUE'
        out = [];
    case 'PARENT'
        out = get(obj.frame,'Parent');
    case 'VISIBLE'
        out = get(obj.frame,'Visible');
    case 'FRAME'
        out = obj.frame;
    case 'UICONTEXTMENU'
        out = get(obj.frame,'UIContextMenu');
        
    otherwise
        try
            out = get(obj.grid, property);
        end
end