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

    function sz = printSize(obj)
%PRINTSIZE Returns the preferred printing size for the component
%
%  SZ = PRINTSIZE(OBJ) returns a two element vector containing the
%  preferred width and height for printing the component.  This method
%  calls printSize on the selected view.

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


if ~isempty(obj.ViewGroup.SelectedViewContainer)
    sz = obj.ViewGroup.SelectedViewContainer.printSize;
else
    sz = obj.super('printSize');
end