www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@abstractcomponent/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 default implementation returns the current width and height of the % component and this is likely to be adequate for many subclasses. % However, some classes may want to modify this, for example scrolling % components that want to print their entire visible area. % Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc. sz = obj.Position(3:4);