www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcmultiview/@MultiViewPanel/canPrint.m

    function out = canPrint(obj)
%CANPRINT Check whether component can be printed
%
%  CANPRINT(OBJ) calls canPrint on the selected view.

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


if ~isempty(obj.ViewGroup.SelectedViewContainer)
    out = obj.ViewGroup.SelectedViewContainer.canPrint;
else
    out = false;
end