📄 presentation.html
字号:
<BR>
取得幻灯片放映窗口。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#getSlideTransition(int)">getSlideTransition</A></B>(int index)</CODE>
<BR>
得到指定幻灯片的切换效果对象。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> application.workbooks.workbook.presentations.presentation.Master</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#getTitleMaster(int)">getTitleMaster</A></B>(int index)</CODE>
<BR>
得到标题母版。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#getTitleMasterCount()">getTitleMasterCount</A></B>()</CODE>
<BR>
得到标题母版总数。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#getViewType()">getViewType</A></B>()</CODE>
<BR>
得到当前激活的pg视图类型。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#getViewZoom()">getViewZoom</A></B>()</CODE>
<BR>
得到当前激活的pg视图的Zoom值。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../application/workbooks/Workbook.html" title="application.workbooks 中的类">Workbook</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#getWorkbook()">getWorkbook</A></B>()</CODE>
<BR>
返回所属的集成文件</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#gotoSlide(int)">gotoSlide</A></B>(int slideIndex)</CODE>
<BR>
定位到指定的幻灯片。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#removeMaster(int)">removeMaster</A></B>(int index)</CODE>
<BR>
在指定位置删除一个幻灯片母版。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#removePresentationListener(application.event.PresentationListener)">removePresentationListener</A></B>(<A HREF="../../../../application/event/PresentationListener.html" title="application.event 中的接口">PresentationListener</A> l)</CODE>
<BR>
简报移除指定的监听器。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#rename(java.lang.String)">rename</A></B>(java.lang.String newName)</CODE>
<BR>
重命名当前简报。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#selectSlide(int)">selectSlide</A></B>(int index)</CODE>
<BR>
选中某一张幻灯片。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#setAllFillAttribute(application.workbooks.workbook.style.fill.FillAttribute)">setAllFillAttribute</A></B>(<A HREF="../../../../application/workbooks/workbook/style/fill/FillAttribute.html" title="application.workbooks.workbook.style.fill 中的类">FillAttribute</A> attr)</CODE>
<BR>
设置所有幻灯片的背景效果。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#setAllSlideTransition(application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting)">setAllSlideTransition</A></B>(application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting setting)</CODE>
<BR>
应用所有幻灯片切换方式。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#setCustomShowLists(application.workbooks.workbook.presentations.presentation.show.CustomShowLists)">setCustomShowLists</A></B>(application.workbooks.workbook.presentations.presentation.show.CustomShowLists lists)</CODE>
<BR>
设置相应的自定义播放列表管理器对象。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#setFillAttribute(int, application.workbooks.workbook.style.fill.FillAttribute)">setFillAttribute</A></B>(int index,
<A HREF="../../../../application/workbooks/workbook/style/fill/FillAttribute.html" title="application.workbooks.workbook.style.fill 中的类">FillAttribute</A> attr)</CODE>
<BR>
设置幻灯片的背景效果。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#setSlideShowSetting(application.workbooks.workbook.presentations.presentation.show.SlideShowSetting)">setSlideShowSetting</A></B>(application.workbooks.workbook.presentations.presentation.show.SlideShowSetting setting)</CODE>
<BR>
设置幻灯片放映方式。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#setSlideTransition(int, application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting)">setSlideTransition</A></B>(int index,
application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting setting)</CODE>
<BR>
应用幻灯片切换方式。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#setViewZoom(int)">setViewZoom</A></B>(int zoom)</CODE>
<BR>
设置当前激活的pg视图的Zoom值。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../application/workbooks/workbook/presentations/Presentation.html#switchView(int)">switchView</A></B>(int viewType)</CODE>
<BR>
切换幻灯片视图。</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>从类 java.lang.Object 继承的方法</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>方法详细信息</B></FONT></TH>
</TR>
</TABLE>
<A NAME="activate()"><!-- --></A><H3>
activate</H3>
<PRE>
public void <B>activate</B>()</PRE>
<DL>
<DD>激活简报。 <p> <b>例子: </b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getPresentation("简报1"); present.activate(); </pre>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="addPresentationListener(application.event.PresentationListener)"><!-- --></A><H3>
addPresentationListener</H3>
<PRE>
public void <B>addPresentationListener</B>(<A HREF="../../../../application/event/PresentationListener.html" title="application.event 中的接口">PresentationListener</A> l)</PRE>
<DL>
<DD>为简报添加一个监听器。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>l</CODE> - 简报监听器 <p> <b>例子:</b> <pre> Workbook book = Application.getWorkbooks().getActiveWorkbook(); if (book == null) { book = Application.getWorkbooks().addWorkbook(GlobalConstants.PRESENTATION); } if (book.getPresentations().getCount() == 0) { pre = book.getPresentations().addPresentation(); } else { pre = book.getPresentations().getActivePresentation(); } PresentationListener l = new PresentationListener() { public void presentationChanged(PresentationEvent event) { int type = event.getType(); switch (type) { case PresentationEvent.SELECTION_CHANGED_SLIDE: SlideRange range = event.getSlideRange(); Slide[] slide = range.getAllSlides(); for (int i =0 ;i< slide.length;i++) { System.out.println(slide[i].getSlideIndex()); } break; case PresentationEvent.SHOW_NEXT_SLIDE: JOptionPane.showMessageDialog(Application.getMainFrame(),"SHOW_NEXT_CLICK_SLIDE"); break; } } }; pre.addPresentationListener(l); </pre></DL>
</DD>
</DL>
<HR>
<A NAME="appendSlideMaster(int)"><!-- --></A><H3>
appendSlideMaster</H3>
<PRE>
public void <B>appendSlideMaster</B>(int index)</PRE>
<DL>
<DD>添加新的幻灯片母版。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 插入的位置索引号 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); present.appendSlideMaster(1); present.getSlideMaster(1); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的幻灯片母版不存在</DL>
</DD>
</DL>
<HR>
<A NAME="appendTitleMaster(int)"><!-- --></A><H3>
appendTitleMaster</H3>
<PRE>
public void <B>appendTitleMaster</B>(int index)</PRE>
<DL>
<DD>添加新的标题母版。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 插入的位置索引号 <p> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); present.appendTitleMaster(1); </pre>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的标题母版不存在</DL>
</DD>
</DL>
<HR>
<A NAME="applyAllColorScheme(int, int)"><!-- --></A><H3>
applyAllColorScheme</H3>
<PRE>
public void <B>applyAllColorScheme</B>(int index,
int colorSchemeIndex)</PRE>
<DL>
<DD>应用所有幻灯片配色方案。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 要设置的幻灯片索引值<DD><CODE>colorSchemeIndex</CODE> - 配色方案索引 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); present.applyAllColorScheme(1, 1); </pre>
<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="applyColorScheme(int, int)"><!-- --></A><H3>
applyColorScheme</H3>
<PRE>
public void <B>applyColorScheme</B>(int index,
int colorSchemeIndex)</PRE>
<DL>
<DD>应用配色方案。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>index</CODE> - 要设置的幻灯片索引值<DD><CODE>colorSchemeIndex</CODE> - 配色方案索引 <p> <b>例子:</b>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -