⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pageview.html

📁 永中OFFICE二次开发帮助文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</DD>
<DD><DL>

<DT><B>返回:</B><DD>视图类型 <p> <b>例子:</b> <pre> //请输入一些文字。 Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); PageView pageView = docView.getPageView(); System.out.println("得到当前文档视图的类型是:"+pageView.getViewType()); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="getZoomType()"><!-- --></A><H3>
getZoomType</H3>
<PRE>
public int <B>getZoomType</B>()</PRE>
<DL>
<DD>获取文档显示的缩放类型。
<P>
<DD><DL>

<DT><B>返回:</B><DD>文档显示的缩放类型,其常量和相应的值如下: <pre>      ZoomConstants.NO_ZOOM_TYPE (没有选择缩放类型);      ZoomConstants.PAGE_WIDTH   (显示页面宽度);      ZoomConstants.TEXT_WIDTH   (显示文本宽度);      ZoomConstants.WHOLE_WIDTH  (显示整个页面);      ZoomConstants.MULTI_PAGES  (多页显示) </pre> <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); PageView pageView = docView.getPageView(); System.out.println("当前页面视图的缩放类型为:"+pageView.getZoomType()); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="isRulerVisible()"><!-- --></A><H3>
isRulerVisible</H3>
<PRE>
public boolean <B>isRulerVisible</B>()</PRE>
<DL>
<DD>返回标尺是否可见。
<P>
<DD><DL>

<DT><B>返回:</B><DD>标尺是否可见 <p> <b>例子:</b> <pre> //请输入一些文字。 Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); PageView pageView = docView.getPageView(); System.out.println("当前文档视图的标尺是否可见:"+pageView.isRulerVisible()); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="setGridLineVisible(boolean)"><!-- --></A><H3>
setGridLineVisible</H3>
<PRE>
public void <B>setGridLineVisible</B>(boolean&nbsp;visible)</PRE>
<DL>
<DD>在文档中显示网格线。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>visible</CODE> - 是否显示网格线 <p> <b>例子:</b> <pre> //请输入一些文字。 Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); PageView pageView = docView.getPageView(); pageView.setGridLineVisible(true); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="setGridSettings(application.workbooks.workbook.documents.document.GridSettings)"><!-- --></A><H3>
setGridSettings</H3>
<PRE>
public void <B>setGridSettings</B>(<A HREF="../../../../../../application/workbooks/workbook/documents/document/GridSettings.html" title="application.workbooks.workbook.documents.document 中的类">GridSettings</A>&nbsp;settings)</PRE>
<DL>
<DD>设置网格(网格的设置由方法getGridSettings()获得)。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>settings</CODE> - 网格的设置 <p> <b>例子:</b> <pre> //请输入一些文字。 Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); PageView pageView = docView.getPageView(); GridSettings gridsetting = pageView.getGridSettings(); gridsetting.setShowHorizontalLine(true); gridsetting.setShowVerticalLine(true); pageView.setGridSettings(gridsetting); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数settings为空指针<DT><B>另请参见:</B><DD><A HREF="../../../../../../application/workbooks/workbook/documents/document/view/PageView.html#getGridSettings()"><CODE>getGridSettings()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setHeaderFooterVisible(boolean)"><!-- --></A><H3>
setHeaderFooterVisible</H3>
<PRE>
public void <B>setHeaderFooterVisible</B>(boolean&nbsp;visible)</PRE>
<DL>
<DD>在文档中显示页眉和页脚。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>visible</CODE> - 布尔型值,如为true,在当前文档中显示页眉和页脚;否则,不显示页眉和页脚 <p> <b>例子:</b> <pre> //请输入一些文字。 Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); PageView pageView = docView.getPageView(); pageView.setHeaderFooterVisible(true); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="setLetterPaper(long, long, application.workbooks.workbook.documents.document.view.LetterPaper)"><!-- --></A><H3>
setLetterPaper</H3>
<PRE>
public void <B>setLetterPaper</B>(long&nbsp;offset,
                           long&nbsp;length,
                           <A HREF="../../../../../../application/workbooks/workbook/documents/document/view/LetterPaper.html" title="application.workbooks.workbook.documents.document.view 中的类">LetterPaper</A>&nbsp;letterPaper)</PRE>
<DL>
<DD>设置参数指定区域的稿纸视图(注:稿纸视图的设置是以章节为单位的)。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>offset</CODE> - 指定设置成稿纸视图区域的起始位置<DD><CODE>length</CODE> - 指定的文档长度<DD><CODE>letterPaper</CODE> - 指定的稿纸视图 <p> <b>例子:</b> <pre> //请输入一些文字。 Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); PageView pageView = docView.getPageView(); LetterPaper paper = pageView.getLetterPaper(2,6); paper.setStyle(GridConstants.GRID_STYLE); pageView.setLetterPaper(2,6,paper); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当offset小于0或大于文档长度
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当length小于0或offset + length 大于文档长度
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数letterPaper为空指针</DL>
</DD>
</DL>
<HR>

<A NAME="setRulerVisible(boolean)"><!-- --></A><H3>
setRulerVisible</H3>
<PRE>
public void <B>setRulerVisible</B>(boolean&nbsp;visible)</PRE>
<DL>
<DD>设置标尺是否可见。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>visible</CODE> - 标尺是否可见 <p> <b>例子:</b> <pre> //请输入一些文字。 Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); PageView pageView = docView.getPageView(); pageView.setRulerVisible(false); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="setZoomType(int)"><!-- --></A><H3>
setZoomType</H3>
<PRE>
public void <B>setZoomType</B>(int&nbsp;zoomType)</PRE>
<DL>
<DD>设置文档显示的缩放类型。也可以通过<A HREF="../../../../../../application/workbooks/workbook/documents/document/view/PageView.html#setZoomType(int, int)"><CODE>setZoomType(int,int)</CODE></A>设置行列数来确定缩放比例。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>zoomType</CODE> - 文档显示的缩放类型,其常量和相应的值如下: <pre>      ZoomConstants.NO_ZOOM_TYPE (没有选择缩放类型)      ZoomConstants.PAGE_WIDTH   (显示页面宽度)      ZoomConstants.TEXT_WIDTH   (显示文本宽度)      ZoomConstants.WHOLE_WIDTH  (显示整个页面)      ZoomConstants.MULTI_PAGES  (多页显示)      ZoomConstants.PERCENT_100   (100%缩放大小)      ZoomConstants.PERCENT_200   (200%缩放大小) </pre> <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); PageView pageView = docView.getPageView(); pageView.setZoomType(ZoomConstants.PERCENT_200); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数zoomType超出范围时</DL>
</DD>
</DL>
<HR>

<A NAME="setZoomType(int, int)"><!-- --></A><H3>
setZoomType</H3>
<PRE>
public void <B>setZoomType</B>(int&nbsp;row,
                        int&nbsp;column)</PRE>
<DL>
<DD>通过设置行列数来设置文档显示的缩放比例。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>row</CODE> - 行数,边界为1~4<DD><CODE>column</CODE> - 列数,边界为1~9 </pre> <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); PageView pageView = docView.getPageView(); pageView.setZoomType(3,2); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数row超出1到4范围时
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数column超出1到9范围时</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="跳过导航链接"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>概述</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>类</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../../application/workbooks/workbook/documents/document/view/OutlineView.html" title="application.workbooks.workbook.documents.document.view 中的类"><B>上一个类</B></A>&nbsp;
&nbsp;下一个类</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../../index.html?application/workbooks/workbook/documents/document/view/PageView.html" target="_top"><B>框架</B></A>  &nbsp;
&nbsp;<A HREF="PageView.html" target="_top"><B>无框架</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>所有类</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../../../allclasses-noframe.html"><B>所有类</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  摘要:&nbsp;嵌套&nbsp;|&nbsp;字段&nbsp;|&nbsp;构造方法&nbsp;|&nbsp;<A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息:&nbsp;字段&nbsp;|&nbsp;构造方法&nbsp;|&nbsp;<A HREF="#method_detail">方法</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
版权所有 2001-2006 无锡永中科技有限公司
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -