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

📄 normalview.html

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

<A NAME="getZoom()"><!-- --></A><H3>
getZoom</H3>
<PRE>
public int <B>getZoom</B>()</PRE>
<DL>
<DD>获得文档显示的缩放比例。
<P>
<DD><DL>

<DT><B>返回:</B><DD>文档显示的缩放比例,为int型,100为100%,缩放比例在10% ~ 500%之间 <p> <b>例子:</b> <pre> //请输入一些文字。 Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); NormalView normalView = docView.getNormalView(); System.out.println("当前页面视图的缩放比例为:"+normalView.getZoom()); </pre><DT><B>另请参见:</B><DD><A HREF="../../../../../../application/workbooks/workbook/documents/document/view/NormalView.html#setZoom(int)"><CODE>setZoom(int)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="isHorizontalScrollBarVisible()"><!-- --></A><H3>
isHorizontalScrollBarVisible</H3>
<PRE>
public boolean <B>isHorizontalScrollBarVisible</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(); NormalView normalView = docView.getNormalView(); System.out.println("当前视图是否有水平滚动条:"+normalView.isHorizontalScrollBarVisible()); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="isVerticalScrollBarVisible()"><!-- --></A><H3>
isVerticalScrollBarVisible</H3>
<PRE>
public boolean <B>isVerticalScrollBarVisible</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(); NormalView normalView = docView.getNormalView(); System.out.println("当前视图是否有垂直滚动条:"+normalView.isVerticalScrollBarVisible()); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="setHorizontalScrollBarVisible(boolean)"><!-- --></A><H3>
setHorizontalScrollBarVisible</H3>
<PRE>
public void <B>setHorizontalScrollBarVisible</B>(boolean&nbsp;visible)</PRE>
<DL>
<DD>显示或隐藏水平滚动条上的按钮(页面视图,大纲视图等按钮)
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>visible</CODE> - true表示显示,false表示隐藏 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); NormalView normalView = docView.getNormalView(); normalView.setHorizontalScrollBarVisible(false); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="setMarkVisible(int, boolean)"><!-- --></A><H3>
setMarkVisible</H3>
<PRE>
public void <B>setMarkVisible</B>(int&nbsp;markType,
                           boolean&nbsp;visible)</PRE>
<DL>
<DD>在文档中显示指定的格式标记。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>markType</CODE> - 要在文档中显示的格式标记,其常量和相应的值如下: <pre>        MarkConstants.PARAGRAPH (显示段落标记)        MarkConstants.TAB       (显示制表符)        MarkConstants.SPACE     (显示空格)        MarkConstants.HIDDENTEXT(显示隐藏文字)        MarkConstants.BOOKMARK  (显示书签)        MarkConstants.ALL       (显示所有标记) </pre><DD><CODE>visible</CODE> - 布尔型值,如为true,则显示指定的格式标志;否则,不显示指定的格式标志 <p> <b>例子:</b> <pre> //请输入一些文字 Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); NormalView normalView = docView.getNormalView(); normalView.setMarkVisible(MarkConstants.PARAGRAPH,true); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当markType参数越界时</DL>
</DD>
</DL>
<HR>

<A NAME="setVerticalScrollBarVisible(boolean)"><!-- --></A><H3>
setVerticalScrollBarVisible</H3>
<PRE>
public void <B>setVerticalScrollBarVisible</B>(boolean&nbsp;visible)</PRE>
<DL>
<DD>显示或隐藏垂直滚动条上的按钮 (上一页,下一页等按钮)
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>visible</CODE> - true表示显示,false表示隐藏 <p> <b>例子:</b> <pre> Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); NormalView normalView = docView.getNormalView(); normalView.setVerticalScrollBarVisible(false); </pre></DL>
</DD>
</DL>
<HR>

<A NAME="setZoom(int)"><!-- --></A><H3>
setZoom</H3>
<PRE>
public void <B>setZoom</B>(int&nbsp;zoom)</PRE>
<DL>
<DD>设置文档显示的缩放比例。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>zoom</CODE> - 缩放比例,为int型,100为100%,缩放比例在10% ~ 500%之间 <p> <b>例子:</b> <pre> //请输入一些文字。 Document doc = Application.getWorkbooks().getActiveWorkbook().getDocuments().getActiveDocument(); DocumentView docView = doc.getDocumentView(); NormalView normalView = docView.getNormalView(); normalView.setZoom(50); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当参数不在10到500之间时<DT><B>另请参见:</B><DD><A HREF="../../../../../../application/workbooks/workbook/documents/document/view/NormalView.html#getZoom()"><CODE>getZoom()</CODE></A></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/LetterPaper.html" title="application.workbooks.workbook.documents.document.view 中的类"><B>上一个类</B></A>&nbsp;
&nbsp;<A HREF="../../../../../../application/workbooks/workbook/documents/document/view/OutlineView.html" title="application.workbooks.workbook.documents.document.view 中的类"><B>下一个类</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../../../index.html?application/workbooks/workbook/documents/document/view/NormalView.html" target="_top"><B>框架</B></A>  &nbsp;
&nbsp;<A HREF="NormalView.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 + -