这是indexloc提供的服务,不要输入任何密码
Skip to content
Jochen Staerk edited this page Dec 21, 2015 · 1 revision

TextDocument's zoom mathod requires two parameters, type and value.

Type is a static short defined in DocumentZoomType (do not use ZoomLevel here), Value is a value "between 20 and 600".

This is a short example:

		try {
			<TEXTDOCUMENT>.zoom(DocumentZoomType.BY_VALUE, (short)200);
		} catch (DocumentException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
Clone this wiki locally