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

📄 slide.html

📁 永中OFFICE二次开发帮助文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;设置 ColorScheme 对象。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/presentations/presentation/Slide.html#setDesign(application.workbooks.workbook.presentations.presentation.design.Design)">setDesign</A></B>(application.workbooks.workbook.presentations.presentation.design.Design&nbsp;design)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;设置代表设计的 Design 对象。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/presentations/presentation/Slide.html#setDisplayMasterShapes(boolean)">setDisplayMasterShapes</A></B>(boolean&nbsp;display)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;决定是否由指定的幻灯片显示幻灯片母版中的背景对象。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/presentations/presentation/Slide.html#setFillAttribute(application.workbooks.workbook.style.fill.FillAttribute)">setFillAttribute</A></B>(<A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html" title="application.workbooks.workbook.style.fill 中的类">FillAttribute</A>&nbsp;fillAttr)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;设置背景。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/presentations/presentation/Slide.html#setHeaderFooter(application.workbooks.workbook.presentations.presentation.slide.HeaderFooter)">setHeaderFooter</A></B>(application.workbooks.workbook.presentations.presentation.slide.HeaderFooter&nbsp;headerFooter)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;设置一个 HeaderFooter 对象。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/presentations/presentation/Slide.html#setLayout(int)">setLayout</A></B>(int&nbsp;layout)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;设置 PpSlideLayout 类型常数,该常数代表幻灯片版式。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/presentations/presentation/Slide.html#setSlideTransition(application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting)">setSlideTransition</A></B>(application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting&nbsp;setting)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;应用幻灯片切换方式。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../application/workbooks/workbook/presentations/presentation/Slide.html#setVisible(boolean)">setVisible</A></B>(boolean&nbsp;isVisible)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;设置幻灯片是否显示。</TD>
</TR>
</TABLE>
&nbsp;<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>
&nbsp;
<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="export(java.lang.String, java.lang.String, int, int)"><!-- --></A><H3>
export</H3>
<PRE>
public void <B>export</B>(java.lang.String&nbsp;fileName,
                   java.lang.String&nbsp;filterName,
                   int&nbsp;scaleWidth,
                   int&nbsp;scaleheight)</PRE>
<DL>
<DD>使用指定的图形筛选器导出一张幻灯片或幻灯片范围,并将导出的文件以指定的文件名保存。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>fileName</CODE> - 将导出并保存到磁盘的文件的名称<DD><CODE>filterName</CODE> - 要导出幻灯片的图形格式<DD><CODE>scaleWidth</CODE> - 导出的幻灯片的宽度(以像素为单位)<DD><CODE>scaleheight</CODE> - 导出的幻灯片的高度(以像素为单位) <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); Slides slides = present.getSlides(); Slide slide = slides.getActiveSlide(); slide.export("123", "jpg", 300, 200); </pre> <p>
<DT><B>抛出:</B>
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的文件名称为null或空字符串。
<DD><CODE><A HREF="../../../../../application/exceptions/MacroRunException.html" title="application.exceptions 中的类">MacroRunException</A></CODE> - 指定的幻灯片的图形格式为null或空字符串。</DL>
</DD>
</DL>
<HR>

<A NAME="getAniamtionSchemeIndex()"><!-- --></A><H3>
getAniamtionSchemeIndex</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public int <B>getAniamtionSchemeIndex</B>()</PRE>
<DL>
<DD><B>已过时。</B>&nbsp;
<P>
<DD>得到动画方案数据的索引值
<P>
<DD><DL>

<DT><B>返回:</B><DD>动画方案数据的索引值</DL>
</DD>
</DL>
<HR>

<A NAME="getAnimationSchemeIndex()"><!-- --></A><H3>
getAnimationSchemeIndex</H3>
<PRE>
public int <B>getAnimationSchemeIndex</B>()</PRE>
<DL>
<DD>得到动画方案数据的索引值
<P>
<DD><DL>

<DT><B>返回:</B><DD>动画方案数据的索引值 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); Slides slides = present.getSlides(); Slide slide = slides.getActiveSlide(); slide.setAnimationScheme(2,3); System.out.println(slide.getAnimationSchemeIndex()); </pre> <p></DL>
</DD>
</DL>
<HR>

<A NAME="getAnimationSchemeType()"><!-- --></A><H3>
getAnimationSchemeType</H3>
<PRE>
public int <B>getAnimationSchemeType</B>()</PRE>
<DL>
<DD>得到动画方案的索引值
<P>
<DD><DL>

<DT><B>返回:</B><DD>动画方案组的索引值 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); Slides slides = present.getSlides(); Slide slide = slides.getActiveSlide(); slide.setAnimationScheme(2,3); System.out.println(slide.getAnimationSchemeType()); </pre> <p></DL>
</DD>
</DL>
<HR>

<A NAME="getColorScheme()"><!-- --></A><H3>
getColorScheme</H3>
<PRE>
public application.workbooks.workbook.presentations.presentation.design.ColorScheme <B>getColorScheme</B>()</PRE>
<DL>
<DD>返回 ColorScheme 对象。
<P>
<DD><DL>

<DT><B>返回:</B><DD>ColorScheme 对象 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); Slides slides = present.getSlides(); Slide slide = slides.getSlide(1); ColorScheme colorScheme = slide.getColorScheme(); colorScheme.setSchemeValue(1,Color.RED); slide.setColorScheme(colorScheme); </pre> <p></DL>
</DD>
</DL>
<HR>

<A NAME="getColorSchemes()"><!-- --></A><H3>
getColorSchemes</H3>
<PRE>
public application.workbooks.workbook.presentations.presentation.design.ColorSchemes <B>getColorSchemes</B>()</PRE>
<DL>
<DD>返回 ColorSchemes 对象。
<P>
<DD><DL>

<DT><B>返回:</B><DD>ColorSchemes 对象 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); Slides slides = present.getSlides(); Slide slide = slides.getSlide(1); ColorSchemes colorSchemes = slide.getColorSchemes(); </pre> <p></DL>
</DD>
</DL>
<HR>

<A NAME="getComments(application.workbooks.workbook.presentations.presentation.slide.pgshapes.PgShape)"><!-- --></A><H3>
getComments</H3>
<PRE>
public application.workbooks.workbook.presentations.presentation.slide.PgComments <B>getComments</B>(<A HREF="../../../../../application/workbooks/workbook/presentations/presentation/slide/pgshapes/PgShape.html" title="application.workbooks.workbook.presentations.presentation.slide.pgshapes 中的类">PgShape</A>&nbsp;shape)</PRE>
<DL>
<DD>返回 Comments 对象,该对象代表批注的集合。
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>shape</CODE> - 图形对象 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); Slides slides = present.getSlides(); Slide slide = slides.getActiveSlide(); PgShape shape = slide.getShapes().getAllShapes()[0]; PgComments pgComments = slide.getComments(shape); System.out.println(pgComments.getCount()); </pre> <p></DL>
</DD>
</DL>
<HR>

<A NAME="getDesign()"><!-- --></A><H3>
getDesign</H3>
<PRE>
public application.workbooks.workbook.presentations.presentation.design.Design <B>getDesign</B>()</PRE>
<DL>
<DD>返回代表设计的 Design 对象。
<P>
<DD><DL>

<DT><B>返回:</B><DD>代表设计的 Design 对象 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); Slides slides = present.getSlides(); Slide slide = slides.getSlide(1); Design design = slide.getDesign(); design.setPreserved(true); slide.setDesign(design); </pre> <p></DL>
</DD>
</DL>
<HR>

<A NAME="getFillAttribute()"><!-- --></A><H3>
getFillAttribute</H3>
<PRE>
public <A HREF="../../../../../application/workbooks/workbook/style/fill/FillAttribute.html" title="application.workbooks.workbook.style.fill 中的类">FillAttribute</A> <B>getFillAttribute</B>()</PRE>
<DL>
<DD>返回幻灯片背景。
<P>
<DD><DL>

<DT><B>返回:</B><DD>幻灯片背景FillAttribute属性 <p> <b>例子:</b> <pre> Workbook workbook = Application.getWorkbooks().getActiveWorkbook(); Presentation present = workbook.getPresentations().getActivePresentation(); Slides slides = present.getSlides(); Slide slide = slides.getActiveSlide(); FillAttribute fill = slide.getFillAttribute(); fill.setFillColorType(ChartConstants.FILL_CUSTOM); fill.getTextureAttribute().setTextureIndex(2); slide.setFillAttribute(fill); </pre> <p></DL>
</DD>
</DL>
<HR>

<A NAME="getHeaderFooter(int)"><!-- --></A><H3>
getHeaderFooter</H3>
<PRE>
public application.workbooks.workbook.presentations.presentation.slide.HeaderFooter <B>getHeaderFooter</B>(int&nbsp;type)</PRE>
<DL>
<DD>返回其HeaderFooter对象
<P>
<DD><DL>
<DT><B>参数:</B><DD><CODE>type</CODE> - 类型 <pre> 0 = 幻灯片 1 = 备注与讲义 </pre>
<DT><B>返回:</B><DD>HeaderFooter对象 <p> <b>例子:</b> <pre>

⌨️ 快捷键说明

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