概述 | 软件包 | 类 | 使用 | 树 | 索引 | 帮助

上一个类 下一个类 | 框架 无框架
摘要： 嵌套 | 字段 | 构造函数 | 方法 | 详细信息： 字段 | 构造函数 | 方法

## application.workbooks.workbook.presentations
类 Presentation

    java.lang.Object
      application.workbooks.workbook.presentations.Presentation

    public class Presentation

extends java.lang.Object

简报应用制作对象

自从：
  V1.31

方法摘要
`void` | `activate()` 激活简报。
`void` | `appendSlideMaster(int index)` 添加新的幻灯片母版。
`void` | `appendTitleMaster(int index)` 添加新的标题母版。
`void` | `applyAllColorScheme(int index, int colorSchemeIndex)` 应用所有幻灯片配色方案。
`void` | `applyColorScheme(int index, int colorSchemeIndex)` 应用配色方案。
`void` | `applyTemplate(java.lang.String fileName)` 应用设计模板（应用于所有的幻灯片）。
`application.workbooks.workbook.presentations.presentation.show.CustomShowLists` | `getCustomShowLists()` 得到相应的自定义播放列表管理器对象。
`application.workbooks.workbook.presentations.presentation.design.Designs` | `getDesigns()` 返回幻灯片设计模板管理器
`FillAttribute` | `getFillAttribute(int index)` 得到指定幻灯片的背景效果对象。
`application.workbooks.workbook.presentations.presentation.Master` | `getHandoutMaster()` 在讲义母版视图下得到讲义母版，如果是在非备注母版视图下则返回null。
`java.lang.String` | `getName()` 得到简报的名称。
`application.workbooks.workbook.presentations.presentation.Master` | `getNoteMaster()` 在备注母版视图下在得到备注母版，如果是在非备注母版视图下则返回null。
`application.workbooks.workbook.presentations.presentation.PgPageSetup` | `getPageSetup()` 取得页面设置对象。
`Print` | `getPrint()` 得到打印设置。
`Slide` | `getSlide(int index)` 得到某一张幻灯片。
`int` | `getSlideCount()` 得到该简报制作中幻灯片的总数。
`application.workbooks.workbook.presentations.presentation.Master` | `getSlideMaster(int index)` 得到幻灯片母版。
`int` | `getSlideMasterCount()` 得到幻灯片母版的数目
`Slides` | `getSlides()` 返回幻灯片管理器。
`application.workbooks.workbook.presentations.presentation.show.SlideShow` | `getSlideShow()` 获得简报的放映对象。
`application.workbooks.workbook.presentations.presentation.show.SlideShowSetting` | `getSlideShowSetting()` 得到幻灯片放映设置。
`application.workbooks.workbook.presentations.presentation.show.SlideShowWindow` | `getSlideShowWindow()` 取得幻灯片放映窗口。
`application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting` | `getSlideTransition(int index)` 得到指定幻灯片的切换效果对象。
`application.workbooks.workbook.presentations.presentation.Master` | `getTitleMaster(int index)` 得到标题母版。
`int` | `getTitleMasterCount()` 得到标题母版总数。
`int` | `getViewType()` 得到当前激活的pg视图类型。
`int` | `getViewZoom()` 得到当前激活的pg视图的Zoom值。
`void` | `gotoSlide(int slideIndex)` 定位到指定的幻灯片。
`void` | `removeMaster(int index)` 在指定位置删除一个幻灯片母版或标题母版。
`void` | `rename(java.lang.String newName)` 重命名当前简报。
`void` | `selectSlide(int index)` 选中某一张幻灯片。
`void` | `setAllFillAttribute(FillAttribute attr)` 设置所有幻灯片的背景效果。
`void` | `setAllSlideTransition(application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting setting)` 应用所有幻灯片切换方式。
`void` | `setFillAttribute(int index, FillAttribute attr)` 设置幻灯片的背景效果。
`void` | `setSlideShowSetting(application.workbooks.workbook.presentations.presentation.show.SlideShowSetting setting)` 设置幻灯片放映方式。
`void` | `setSlideTransition(int index, application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting setting)` 应用幻灯片切换方式。
`void` | `setViewZoom(int zoom)` 设置当前激活的pg视图的Zoom值。
`void` | `switchView(int viewType)` 切换幻灯片视图。

从类 java.lang.Object 继承的方法
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

方法详细信息

### activate

    public void activate()

  激活简报。

  例子:

       Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
       Presentation present = workbook.getPresentations().getActivePresentation();
       present.activate();

### appendSlideMaster

    public void appendSlideMaster(int index)

  添加新的幻灯片母版。

  参数：
    `index` - 插入的位置索引号

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.getSlideMaster(1);
         present.appendSlideMaster(1);

### appendTitleMaster

    public void appendTitleMaster(int index)

  添加新的标题母版。

  参数：
    `index` - 插入的位置索引号

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.appendTitleMaster(1);

### applyAllColorScheme

    public void applyAllColorScheme(int index,
                                    int colorSchemeIndex)

  应用所有幻灯片配色方案。

  参数：
    `index` - 要设置的幻灯片索引值
    `colorSchemeIndex` - 配色方案索引

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.applyAllColorScheme(1, 1);

### applyColorScheme

    public void applyColorScheme(int index,
                                 int colorSchemeIndex)

  应用配色方案。

  参数：
    `index` - 要设置的幻灯片索引值
    `colorSchemeIndex` - 配色方案索引

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.applyColorScheme(1, 1);

### applyTemplate

    public void applyTemplate(java.lang.String fileName)

  应用设计模板（应用于所有的幻灯片）。

  参数：
    `fileName` - 模板的路径

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.applyTemplate("C:/Program Files/Evermore/EIOffice/Templates/Presentation/设计模板/灿烂.eit");

### getCustomShowLists

    public application.workbooks.workbook.presentations.presentation.show.CustomShowLists getCustomShowLists()

  得到相应的自定义播放列表管理器对象。

  返回：
    自定义播放列表管理器对象

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.getCustomShowLists();

### getDesigns

    public application.workbooks.workbook.presentations.presentation.design.Designs getDesigns()

  返回幻灯片设计模板管理器

  返回：
    设计模板管理器

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.getDesigns();

### getFillAttribute

    public FillAttribute getFillAttribute(int index)

  得到指定幻灯片的背景效果对象。

  参数：
    `index` - 幻灯片索引值
  返回：
    幻灯片的背景效果对象

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         FillAttribute fillattribute = present.getFillAttribute(2);
         System.out.println(fillattribute);

### getHandoutMaster

    public application.workbooks.workbook.presentations.presentation.Master getHandoutMaster()

  在讲义母版视图下得到讲义母版，如果是在非备注母版视图下则返回null。

  返回：
    讲义母版

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.switchView(PresentationConstants.HANDOUTMASTER);
         Master master = present.getHandoutMaster();
         System.out.println(master);

### getName

    public java.lang.String getName()

  得到简报的名称。

  返回：
    name 简报的名称

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         String name = present.getName();
         System.out.println(name);

### getNoteMaster

    public application.workbooks.workbook.presentations.presentation.Master getNoteMaster()

  在备注母版视图下在得到备注母版，如果是在非备注母版视图下则返回null。

  返回：
    备注母版

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.switchView(PresentationConstants.NOTEMASTER);
         Master master = present.getNoteMaster();
         System.out.println(master);

### getPageSetup

    public application.workbooks.workbook.presentations.presentation.PgPageSetup getPageSetup()

  取得页面设置对象。

  返回：
    页面设置对象

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         PgPageSetup pgpagesetup = present.getPageSetup();

### getPrint

    public Print getPrint()

  得到打印设置。

  返回：
    打印设置

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         Print print = present.getPrint();

### getSlide

    public Slide getSlide(int index)

  得到某一张幻灯片。

  参数：
    `index` - 想得到的幻灯片的索引值

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         Slide slide = present.getSlide(2);
         System.out.println(slide.getID());

### getSlideCount

    public int getSlideCount()

  得到该简报制作中幻灯片的总数。

  返回：
    幻灯片的总数

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         int count = present.getSlideCount();
         System.out.println(count);

### getSlideMaster

    public application.workbooks.workbook.presentations.presentation.Master getSlideMaster(int index)

  得到幻灯片母版。

  参数：
    `index` - 幻灯片母版的索引号
  返回：
    幻灯片母版

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         Master master = present.getSlideMaster(1);
         System.out.println(master);

### getSlideMasterCount

    public int getSlideMasterCount()

  得到幻灯片母版的数目

  返回：
    幻灯片母版的数目

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         int count = present.getSlideMasterCount();
         System.out.println("count" + count);

### getSlides

    public Slides getSlides()

  返回幻灯片管理器。

  返回：
    幻灯片管理器

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.getSlides();

### getSlideShow

    public application.workbooks.workbook.presentations.presentation.show.SlideShow getSlideShow()

  获得简报的放映对象。

  返回：
    简报的放映对象

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         SlideShow slideshow = present.getSlideShow();
         System.out.println(slideshow);

### getSlideShowSetting

    public application.workbooks.workbook.presentations.presentation.show.SlideShowSetting getSlideShowSetting()

  得到幻灯片放映设置。

  返回：
    幻灯片放映设置

    例子：

        Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
        Presentation present = workbook.getPresentations().getActivePresentation();
        SlideShowSetting setting = present.getSlideShowSetting();
        System.out.print(setting);

### getSlideShowWindow

    public application.workbooks.workbook.presentations.presentation.show.SlideShowWindow getSlideShowWindow()

  取得幻灯片放映窗口。

  返回：
    幻灯片放映窗口

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.getSlideShowWindow();

### getSlideTransition

    public application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting getSlideTransition(int index)

  得到指定幻灯片的切换效果对象。

  参数：
    `index` - 幻灯片索引值
  返回：
    幻灯片的切换效果对象

    例子：

          Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
          Presentation present = workbook.getPresentations().getActivePresentation();
          SlideTransitionSetting slidetransitionsetting = present.getSlideTransition(2);
          System.out.println(slidetransitionsetting);

### getTitleMaster

    public application.workbooks.workbook.presentations.presentation.Master getTitleMaster(int index)

  得到标题母版。

  参数：
    `index` - 标题母版的索引号
  返回：
    标题母版

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         Master master = present.getTitleMaster(1);
         System.out.println(master);

### getTitleMasterCount

    public int getTitleMasterCount()

  得到标题母版总数。

  例子：

       Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
       Presentation present = workbook.getPresentations().getActivePresentation();
       int count =present.getTitleMasterCount();
       System.out.println(count);

### getViewType

    public int getViewType()

  得到当前激活的pg视图类型。

  返回：
    pg视图类型，其取值为如下常量：

         PresentationConstants.NORMALVIEW = 0(常规视图);
         PresentationConstants.SORTVIEW = 3(幻灯片浏览视图);
         PresentationConstants.SHOWVIEW = 4(放映视图);
         PresentationConstants.SLIDEMASTER = 5(幻灯片母版);
         PresentationConstants.HANDOUTMASTER = 7(讲义母版 );
         PresentationConstants.NOTEMASTER = 8(备注母版);
         PresentationConstants.NOTEPAGEVIEW = 9(备注页视图);

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         int viewType = present.getViewType();
         System.out.println(viewType);

### getViewZoom

    public int getViewZoom()

  得到当前激活的pg视图的Zoom值。

  返回：
    pg视图的zoom值

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         int count = present.getViewZoom();
         System.out.println(count);

### gotoSlide

    public void gotoSlide(int slideIndex)

  定位到指定的幻灯片。

  参数：
    `slideIndex` - 幻灯片的索引.

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.gotoSlide(2);

### removeMaster

    public void removeMaster(int index)

  在指定位置删除一个幻灯片母版或标题母版。

  参数：
    `index` - 母版的索引号

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.appendTitleMaster(1);
         present.removeMaster(1);

### rename

    public void rename(java.lang.String newName)

  重命名当前简报。

  参数：
    `newName` - 更名后简报的新名字

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.rename("jianbao1");

### selectSlide

    public void selectSlide(int index)

  选中某一张幻灯片。

  参数：
    `index` - 幻灯片索引值

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.selectSlide(2);

### setAllFillAttribute

    public void setAllFillAttribute(FillAttribute attr)

  设置所有幻灯片的背景效果。

  参数：
    `attr` - 背景效果属性

    例子：

          Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
          Presentation present = workbook.getPresentations().getActivePresentation();
          FillAttribute fillattribute = present.getFillAttribute(1);
          present.setAllFillAttribute(fillattribute);

### setAllSlideTransition

    public void setAllSlideTransition(application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting setting)

  应用所有幻灯片切换方式。

  参数：
    `setting` - 幻灯片切换方式设置

    例子：

        Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
        Presentation present = workbook.getPresentations().getActivePresentation();
        SlideTransitionSetting setting = present.getSlideTransition(2);
        present.setAllSlideTransition(setting);

### setFillAttribute

    public void setFillAttribute(int index,
                                 FillAttribute attr)

  设置幻灯片的背景效果。

  参数：
    `index` - 幻灯片索引值
    `attr` - 背景效果属性

    例子：

          Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
          Presentation present = workbook.getPresentations().getActivePresentation();
          FillAttribute fillattribute = present.getFillAttribute(1);
          present.setFillAttribute(2,fillattribute);

### setSlideShowSetting

    public void setSlideShowSetting(application.workbooks.workbook.presentations.presentation.show.SlideShowSetting setting)

  设置幻灯片放映方式。

  参数：
    `setting` - 幻灯片放映方式对象

    例子：

        Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
        Presentation present = workbook.getPresentations().getActivePresentation();
        SlideShowSetting setting = present.getSlideShowSetting();
        setting.setShowType(0);
        present.setSlideShowSetting(setting);

### setSlideTransition

    public void setSlideTransition(int index,
                                   application.workbooks.workbook.presentations.presentation.slide.SlideTransitionSetting setting)

  应用幻灯片切换方式。

  参数：
    `index` - 幻灯片索引值
    `setting` - 幻灯片切换方式设置

    例子：

        Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
        Presentation present = workbook.getPresentations().getActivePresentation();
        SlideTransitionSetting setting = present.getSlideTransition(2);
        present.setSlideTransition(1,setting);

### setViewZoom

    public void setViewZoom(int zoom)

  设置当前激活的pg视图的Zoom值。

  参数：
    `zoom` - pg视图的zoom值

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.setViewZoom(78);
         int count = present.getViewZoom();
         System.out.println(count);

### switchView

    public void switchView(int viewType)

  切换幻灯片视图。

  参数：
    `viewType` - 显示视图的类型

         需要显示的视图类型，其取值为如下常量：
         PresentationConstants.NORMALVIEW = 0(常规视图);
         PresentationConstants.SLIDESORTVIEW = 3(幻灯片浏览视图);
         PresentationConstants.SHOWVIEW = 4(放映视图);
         PresentationConstants.SLIDEMASTER = 5(幻灯片母版);
         PresentationConstants.HANDOUTMASTER = 7(讲义母版 );
         PresentationConstants.NOTEMASTER = 8(备注母版);
         PresentationConstants.NOTEPAGEVIEW = 9(备注页视图);

    例子：

         Workbook workbook = Application.getWorkbooks().getActiveWorkbook();
         Presentation present = workbook.getPresentations().getActivePresentation();
         present.switchView(3);

概述 | 软件包 | 类 | 使用 | 树 | 索引 | 帮助

上一个类 下一个类 | 框架 无框架
摘要： 嵌套 | 字段 | 构造函数 | 方法 | 详细信息： 字段 | 构造函数 | 方法