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

📄 presentations.html

📁 永中OFFICE二次开发帮助文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
closePresentation</H3>
<PRE>
public void <B>closePresentation</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>关闭一个简报制作文档。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>name</CODE> - 简报制作文档的名称 <p> <b>例子:</b> <pre> Presentations presentations = Application.getWorkbooks().getActiveWorkbook().getPresentations(); presentations.addPresentation(); presentations.addPresentation(); presentations.closePresentation("简报1"); </pre> <p>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的名称中含有非法字符或空字符。
<DD><CODE><A HREF="../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 不存在指定名称的简报文档</DL>
</DD>
</DL>
<HR>

<A NAME="getActivePresentation()"><!-- --></A><H3>
getActivePresentation</H3>
<PRE>
public <A HREF="../../../application/workbooks/workbook/presentations/Presentation.html" title="application.workbooks.workbook.presentations 中的类">Presentation</A> <B>getActivePresentation</B>()</PRE>
<DL>
<DD>获取当前的简报对象。
<P>
<DD><DL>

<DT><B>返回:</B><DD>Presentation 当前的简报制作应用对象,如当前活动窗口对象不是简报制作对象,则返回Null<p><b>例子:</b><pre> Presentations presentations = Application.getWorkbooks().getActiveWorkbook().getPresentations(); Presentation present = presentations.getActivePresentation(); String name = present.getName(); System.out.println(name);</pre><p></DL>
</DD>
</DL>
<HR>

<A NAME="getAllPresentations()"><!-- --></A><H3>
getAllPresentations</H3>
<PRE>
public <A HREF="../../../application/workbooks/workbook/presentations/Presentation.html" title="application.workbooks.workbook.presentations 中的类">Presentation</A>[] <B>getAllPresentations</B>()</PRE>
<DL>
<DD>获取所有简报。
<P>
<DD><DL>

<DT><B>返回:</B><DD>所有简报<p><b>例子:</b><pre> Presentations presentations = Application.getWorkbooks().getActiveWorkbook().getPresentations(); Presentation[] array = presentations.getAllPresentations(); int count = array.length; System.out.println(count);</pre> <p></DL>
</DD>
</DL>
<HR>

<A NAME="getCount()"><!-- --></A><H3>
getCount</H3>
<PRE>
public int <B>getCount</B>()</PRE>
<DL>
<DD>返回当前简报的总数。
<P>
<DD><DL>

<DT><B>返回:</B><DD>简报的总数<p><b>例子:</b><pre> Presentations presentations = Application.getWorkbooks().getActiveWorkbook().getPresentations(); int count = presentations.getCount(); System.out.println(count);</pre><p></DL>
</DD>
</DL>
<HR>

<A NAME="getPresentation(java.lang.String)"><!-- --></A><H3>
getPresentation</H3>
<PRE>
public <A HREF="../../../application/workbooks/workbook/presentations/Presentation.html" title="application.workbooks.workbook.presentations 中的类">Presentation</A> <B>getPresentation</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>根据名字获取简报制作应用程序。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>name</CODE> - 简报制作应用程序名<p><b>例子:</b><pre> Presentations presentations = Application.getWorkbooks().getActiveWorkbook().getPresentations(); Presentation present = presentations.getPresentation("简报1"); String name = present.getName(); System.out.println(name);</pre><p></DL>
</DD>
</DL>
<HR>

<A NAME="getWorkbook()"><!-- --></A><H3>
getWorkbook</H3>
<PRE>
public <A HREF="../../../application/workbooks/Workbook.html" title="application.workbooks 中的类">Workbook</A> <B>getWorkbook</B>()</PRE>
<DL>
<DD>返回所属的集成文件。
<P>
<DD><DL>

<DT><B>返回:</B><DD>集成文件</DL>
</DD>
</DL>
<HR>

<A NAME="hidePresentation(java.lang.String)"><!-- --></A><H3>
hidePresentation</H3>
<PRE>
public void <B>hidePresentation</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>隐藏一个简报制作文档。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>name</CODE> - 简报制作文档的名称  <p> <b>例子:</b> <pre> Presentations presentations = Application.getWorkbooks().getActiveWorkbook().getPresentations(); presentations.hidePresentation("简报1"); </pre> <p>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的名称中含有非法字符或空字符。
<DD><CODE><A HREF="../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 不存在指定名称的简报文档</DL>
</DD>
</DL>
<HR>

<A NAME="openPresentation(java.lang.String)"><!-- --></A><H3>
openPresentation</H3>
<PRE>
public <A HREF="../../../application/workbooks/workbook/presentations/Presentation.html" title="application.workbooks.workbook.presentations 中的类">Presentation</A> <B>openPresentation</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>打开一个简报制作文档(注:是该集成文件中隐藏的简报制作文档)。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>name</CODE> - 简报制作文档的名称
<DT><B>返回:</B><DD>指定名称的简报制作文档,如果简报制作文档不存在,返回null。<p><b>例子:</b><pre> Presentations presentations = Application.getWorkbooks().getActiveWorkbook().getPresentations(); presentations.hidePresentation("简报1"); presentations.openPresentation("简报1"); </pre> <p></DL>
</DD>
</DL>
<HR>

<A NAME="removePresentation(java.lang.String)"><!-- --></A><H3>
removePresentation</H3>
<PRE>
public void <B>removePresentation</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>移除一个指定的简报制作应用。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>name</CODE> - 欲移除的简报制作应用的名字<p><b>例子:</b><pre> Presentations presentations = Application.getWorkbooks().getActiveWorkbook().getPresentations(); presentations.addPresentation(); presentations.addPresentation(); Presentation present = presentations.getActivePresentation(); String name = present.getName(); presentations.removePresentation(name); </pre> <p>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的名称中含有非法字符或空字符。
<DD><CODE><A HREF="../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 不存在指定名称的简报文档</DL>
</DD>
</DL>
<HR>

<A NAME="renamePresentation(java.lang.String, java.lang.String)"><!-- --></A><H3>
renamePresentation</H3>
<PRE>
public <A HREF="../../../application/workbooks/workbook/presentations/Presentation.html" title="application.workbooks.workbook.presentations 中的类">Presentation</A> <B>renamePresentation</B>(java.lang.String&nbsp;oldName,
                                       java.lang.String&nbsp;newName)</PRE>
<DL>
<DD>重命名简报制作文档。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>oldName</CODE> - 旧名<DD><CODE>newName</CODE> - 新名
<DT><B>返回:</B><DD>重命后的文字处理文档,如果需要重命名的文字处理文档不存在,则返回null。 <p><b>例子:</b><pre>Presentations presentations = Application.getWorkbooks().getActiveWorkbook().getPresentations();presentations.openPresentation("简报1");presentations.renamePresentation("简报1", "简报三");</pre><p>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当新名称中含有非法字符或空字符
<DD><CODE><A HREF="../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 当文档中已经存在新名字的简报制作文档。</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;上一个类&nbsp;
&nbsp;<A HREF="../../../application/workbooks/workbook/Shapes.html" title="application.workbooks.workbook 中的类"><B>下一个类</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?application/workbooks/workbook/Presentations.html" target="_top"><B>框架</B></A>  &nbsp;
&nbsp;<A HREF="Presentations.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 + -